rolland Sat Oct 22 09:32:52 2005 EDT Modified files: /php-src/ext/standard string.c Log: - php_u_stristr: s/codepts/codepoints/ - make Jani happy http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.501&r2=1.502&ty=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.501 php-src/ext/standard/string.c:1.502 --- php-src/ext/standard/string.c:1.501 Sat Oct 22 09:25:00 2005 +++ php-src/ext/standard/string.c Sat Oct 22 09:32:51 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.501 2005/10/22 13:25:00 rolland Exp $ */ +/* $Id: string.c,v 1.502 2005/10/22 13:32:51 rolland Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1917,7 +1917,7 @@ /* {{{ php_u_stristr Unicode version of case insensitve strstr */ -PHPAPI UChar *php_u_stristr(UChar *s, UChar *t, int32_t s_len, int32_t t_len) +\PHPAPI UChar *php_u_stristr(UChar *s, UChar *t, int32_t s_len, int32_t t_len) { int32_t i,j, last; UChar32 ch1, ch2; @@ -1926,12 +1926,12 @@ by changing codepoints, and an offset within the lower-case & upper-case strings might be different codepoints. - Find an occurrence of the first codept of 't' in 's', and - starting from this point, match the rest of the codepts of 't' - with those in 's'. Comparisons are performed against lower-case - equivalents of the codepoints being matched. + Find an occurrence of the first codepoint of 't' in 's', and + starting from this point, match the rest of the codepoints of + 't' with those in 's'. Comparisons are performed against + lower-case equivalents of the codepoints being matched. - 'i' & 'j' are indices used for extracting codepts 'ch1' & + 'i' & 'j' are indices used for extracting codepoints 'ch1' & 'ch2'. 'last' is offset in 's' where the search for 't' started, and indicates beginning of 't' in 's' for a successful match.
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php