]> granicus.if.org Git - php/commitdiff
Should be slightly faster to use U16_NEXT here.
authorAndrei Zmievski <andrei@php.net>
Tue, 8 Aug 2006 17:36:20 +0000 (17:36 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 8 Aug 2006 17:36:20 +0000 (17:36 +0000)
Zend/zend_unicode.h

index 65bc8499f2ffc9e5a11b2c1e971ce3504a323dc5..f9569293421cee1da6b62e4d5149920664fc587c 100644 (file)
@@ -106,7 +106,7 @@ static inline UChar32 zend_get_codepoint_at(UChar *str, int length, int n)
        if (n > 0) {
                U16_FWD_N(str, offset, length, n);
        }
-       U16_GET(str, 0, offset, length, c);
+       U16_NEXT(str, offset, length, c);
 
        return c;
 }