From: Rolland Santimano Date: Sat, 22 Oct 2005 13:32:51 +0000 (+0000) Subject: - php_u_stristr: s/codepts/codepoints/ - make Jani happy X-Git-Tag: RELEASE_0_9_1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68487a234eab182ff2f9fbb2e3f0b4af291c9b1c;p=php - php_u_stristr: s/codepts/codepoints/ - make Jani happy --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 53c09c169a..63c0364012 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1917,7 +1917,7 @@ PHP_FUNCTION(pathinfo) /* {{{ 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 @@ PHPAPI UChar *php_u_stristr(UChar *s, UChar *t, int32_t s_len, int32_t t_len) 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.