summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index ddb4eb1ab5..629e017f09 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -1581,6 +1581,17 @@ ZEND_API void zend_str_tolower(char *str, unsigned int length)
}
}
+ZEND_API void zend_str_tolower_nlc(char *str, unsigned int length)
+{
+ register char *p=str, *end=p+length;
+
+ while (p<end) {
+ if (*p >= 'A' && *p <= 'Z') {
+ *p = (*p)+32;
+ }
+ p++;
+ }
+}
ZEND_API int zend_binary_strcmp(char *s1, uint len1, char *s2, uint len2)
{