Browse Source

use pointer arithmetic for the normal zend_str_tolower()

migration/unlabaled-1.3.2
Sterling Hughes 23 years ago
parent
commit
7c7d14a413
  1. 10
      Zend/zend_operators.c

10
Zend/zend_operators.c

@ -1596,10 +1596,12 @@ ZEND_API char *zend_str_tolower_copy(char *str, unsigned int length)
ZEND_API void zend_str_tolower(char *str, unsigned int length)
{
register char *p=str;
do {
p[length] = tolower(p[length]);
} while (length--);
register char *end = str + length;
while (p < end) {
*p = tolower(*p);
p++;
}
}
ZEND_API int zend_binary_strcmp(char *s1, uint len1, char *s2, uint len2)

Loading…
Cancel
Save