/PHP-7.4/ext/standard/tests/strings/ |
H A D | strrchr_variation6.phpt | 2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing quote chars for haystack 26 $quote_char_str //needle as haystack
|
H A D | strrpos_basic1.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 26 //heredoc string for haystack & needle
|
H A D | strrpos_variation6.phpt | 2 Test strrpos() function : usage variations - heredoc string containing quotes for 'haystack' argume… 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 10 /* Test strrpos() function by passing heredoc string containing quotes for haystack
|
H A D | stripos_basic1.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 16 //regular string for haystack & needle 26 //heredoc string for haystack & needle 31 //non-existing needle in haystack
|
H A D | strrchr_variation5.phpt | 2 …t strrchr() function : usage variations - heredoc string containing escape sequences for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 11 * escape sequences for haystack and with various needles 25 $escape_char_str //needle as haystack
|
H A D | strripos_variation4.phpt | 2 Test strripos() function : usage variations - heredoc string containing special chars for 'haystack… 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack' 10 /* Test strripos() function by passing heredoc string containing special chars for haystack
|
H A D | strrchr_variation8.phpt | 2 Test strrchr() function : usage variations - empty heredoc string for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing empty heredoc string for haystack 24 $empty_str //needle as haystack
|
H A D | strrpos_variation4.phpt | 2 Test strrpos() function : usage variations - heredoc string containing special chars for 'haystack'… 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 10 /* Test strrpos() function by passing heredoc string containing special chars for haystack
|
H A D | strrpos_variation7.phpt | 2 Test strrpos() function : usage variations - empty heredoc string for 'haystack' argument 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 10 /* Test strrpos() function by passing empty heredoc string for haystack
|
H A D | strripos_variation1.phpt | 2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum… 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack' 10 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */ 13 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 "; 62 $haystack //haystack as needle 65 /* loop through to get the position of the needle in haystack string */ 69 var_dump( strripos($haystack, $needle) ); 70 var_dump( strripos($haystack, $needle, 1) ); 71 var_dump( strripos($haystack, $needle, 20) ); [all …]
|
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 | strripos_variation2.phpt | 2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum… 5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack' 10 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */ 13 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 '; 63 $haystack //haystack as needle 66 /* loop through to get the position of the needle in haystack string */ 70 var_dump( strripos($haystack, $needle) ); 71 var_dump( strripos($haystack, $needle, 1) ); 72 var_dump( strripos($haystack, $needle, 20) ); [all …]
|
H A D | stripos_variation5.phpt | 2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' … 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 10 /* Test stripos() function by passing heredoc string containing escape chars for haystack
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_substr_count_variation4.phpt | 2 Test mb_substr_count() function : variation - pass a $needle that overlaps in $haystack 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 16 * Pass mb_substr_count() a $needle that overlaps in $haystack and see whether 26 var_dump(mb_substr_count($string_ascii, 'abcabc')); //needle overlaps in haystack
|
H A D | bug45923.phpt | 8 function section($func, $haystack, $needle) 13 var_dump($func($haystack,$needle,$offset)); 152 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 162 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 179 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 189 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 206 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 216 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d 233 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 243 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) );
|
/PHP-7.4/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,…
|
/PHP-7.4/ext/iconv/tests/ |
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));
|