summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-09-26 18:56:11 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-09-26 18:56:11 +0000
commitee7b8f906d9ccaa09467c319b64fdbd2fd617d8b (patch)
tree8cd82fb85d3753e67b3cc2125a2fa0ee3a271fd5 /Zend/zend_operators.c
parentb5d4b5496d0c61283af576903a47b6cb5d04f1b3 (diff)
downloadphp-git-ee7b8f906d9ccaa09467c319b64fdbd2fd617d8b.tar.gz
MFZE1
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)
{