]> granicus.if.org Git - php/commitdiff
Add UTODO.
authorAndrei Zmievski <andrei@php.net>
Mon, 27 Mar 2006 19:15:58 +0000 (19:15 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 27 Mar 2006 19:15:58 +0000 (19:15 +0000)
Zend/zend_unicode.c

index 4d56075c2a5c63862993f7bd916df05e9db2b657..6ed5013e9599f301f5d902c52d6a8bb0826f807d 100644 (file)
@@ -528,7 +528,7 @@ ZEND_API int zend_cmp_unicode_and_string(UChar *ustr, char* str, uint len)
 /* {{{ zend_cmp_unicode_and_literal */
 /*
  * Compare a Unicode string and an ASCII literal. Because ASCII maps nicely onto Unicode
- * range U+0000 .. U+007F, we can simply casst ASCII chars to Unicode values and avoid
+ * range U+0000 .. U+007F, we can simply cast ASCII chars to Unicode values and avoid
  * memory allocation.
  */
 ZEND_API int zend_cmp_unicode_and_literal(UChar *ustr, int ulen, char *str, int slen)
@@ -536,6 +536,7 @@ ZEND_API int zend_cmp_unicode_and_literal(UChar *ustr, int ulen, char *str, int
        int result;
        uint len = MIN(ulen, slen);
 
+       /* UTODO: make sure we're only comparing against ASCII values here (< 0x80) */
        while (len--) {
                result = (int)(uint16_t)*ustr - (int)(uint16_t)*str;
                if (result != 0)