/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_stripos_error1.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 25 $haystack = 'string_val'; 30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) ); 34 $haystack = 'string_val'; 35 var_dump( mb_stripos($haystack) );
|
H A D | mb_strripos_error1.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 25 $haystack = 'string_val'; 30 var_dump( mb_strripos($haystack, $needle, $offset, $encoding, $extra_arg) ); 34 $haystack = 'string_val'; 35 var_dump( mb_strripos($haystack) );
|
H A D | bug45923.phpt | 10 function section($func, $haystack, $needle) 15 var_dump($func($haystack,$needle,$offset)); 154 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 164 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 181 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 191 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 208 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 218 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 235 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 245 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_strrpos_variation3.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 23 $haystack = 'string_val'; 83 var_dump( mb_strrpos($haystack, $needle, $input, $encoding)); 100 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 105 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 116 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_strripos_variation3_Bug45923.phpt | 11 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 25 $haystack = 'string_val'; 100 var_dump( mb_strripos($haystack, $needle, $input, $encoding)); 119 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 124 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 129 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 134 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 139 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_strpos_error2.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 20 $haystack = 'Hello, world'; 25 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_strrpos_error2.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 21 $haystack = 'This is an English string. 0123456789.'; 26 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
|
H A D | mb_strstr_error2.phpt | 10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = 'Hello, world'; 24 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
|
H A D | mb_stripos_error2.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 21 $haystack = 'Hello, world'; 26 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_stristr_error2.phpt | 10 /* Prototype : string mb_stristr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = 'Hello, world'; 24 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrchr_error2.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = 'Hello, world'; 24 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrichr_error2.phpt | 10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = 'Hello, world'; 24 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strripos_error2.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 21 $haystack = 'Hello, world'; 26 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_substr_count_error2.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 21 $haystack = 'Hello, World!'; 26 var_dump(mb_substr_count($haystack, $needle, $encoding));
|
/PHP-7.2/ext/iconv/tests/ |
H A D | iconv_strpos_error1.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 24 $haystack = 'string_val'; 29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) ); 33 $haystack = 'string_val'; 34 var_dump( iconv_strpos($haystack) );
|
H A D | iconv_strpos_error2.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 20 $haystack = 'Hello, world'; 25 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | iconv_strrpos_error2.phpt | 10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset]) 21 $haystack = 'This is an English string. 0123456789.'; 26 var_dump(iconv_strrpos($haystack, $needle , $encoding));
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | strrchr_variation4.phpt | 2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing special chars for haystack 32 $special_chars_str //needle as haystack
|
H A D | strrpos_basic2.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack' 16 //regular string for haystack & needle, with various offsets 22 //heredoc string for haystack & needle, with various offsets
|
H A D | strrchr_error.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 11 $haystack = "Hello"; 19 var_dump( strrchr($haystack) ); 22 var_dump( strrchr($haystack, $needle, $extra_arg) );
|
H A D | strrchr_variation1.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */ 13 $haystack = "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 "; 72 $haystack //haystack as needle 75 /* loop through to get the position of the needle in haystack string */ 79 var_dump( strrchr($haystack, $needle[$index]) );
|
H A D | stripos_variation8.phpt | 2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 15 $haystack = "aBAbaBAbaBabAbAbaBa"; 27 /* loop through to consider various offsets in getting the position of the needle in haystack strin… 31 for($offset = 0; $offset <= strlen($haystack); $offset++ ) { 32 var_dump( stripos($haystack, $needles[$index], $offset) );
|
/PHP-7.2/ext/standard/ |
H A D | string.c | 1927 …found = (char*)php_memnstr(ZSTR_VAL(haystack), needle_char, 1, ZSTR_VAL(haystack) + ZSTR_LEN(hayst… 1980 ZSTR_VAL(haystack) + ZSTR_LEN(haystack)); 1990 ZSTR_VAL(haystack) + ZSTR_LEN(haystack)); 2108 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack); 2116 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack); 2177 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - 1; 2185 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + (size_t)offset; 3194 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack); 3227 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack); 3244 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack… [all …]
|
/PHP-7.2/ext/intl/grapheme/ |
H A D | grapheme_util.h | 28 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_l… 30 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len… 31 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,…
|
H A D | grapheme_util.c | 133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument 149 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_len, &status ); in grapheme_strpos_utf16() 339 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_… in grapheme_strrpos_ascii() argument 344 p = haystack + offset; in grapheme_strrpos_ascii() 345 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii() 347 p = haystack; in grapheme_strrpos_ascii() 349 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii() 351 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()
|