cvs: ZendEngine2 / zend_unicode.c

From: Date: Mon, 27 Mar 2006 19:15:58 +0000
Subject: cvs: ZendEngine2 / zend_unicode.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4778@lists.php.net to get a copy of this message
andrei Mon Mar 27 19:15:58 2006 UTC Modified files: /ZendEngine2 zend_unicode.c Log: Add UTODO. http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_unicode.c?r1=1.19&r2=1.20&diff_format=u Index: ZendEngine2/zend_unicode.c diff -u ZendEngine2/zend_unicode.c:1.19 ZendEngine2/zend_unicode.c:1.20 --- ZendEngine2/zend_unicode.c:1.19 Mon Mar 27 07:35:05 2006 +++ ZendEngine2/zend_unicode.c Mon Mar 27 19:15:58 2006 @@ -528,7 +528,7 @@ /* {{{ 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 @@ 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)

« previous php.zend-engine.cvs (#4778) next »