/PHP-7.4/ext/standard/tests/strings/ |
H A D | stripos_basic2.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 16 //regular string for haystack & needle, with various offsets 25 //heredoc string for haystack & needle, with various offsets
|
H A D | stristr_error.phpt | 6 /* Prototype: string stristr ( string $haystack , mixed $needle [, bool $before_needle ] ) 22 echo "\n-- Testing stristr() function with empty haystack --\n"; 51 -- Testing stristr() function with empty haystack --
|
H A D | strrpos_variation15.phpt | 2 Test strrpos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' … 7 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 8 * Description: Find position of last occurrence of 'needle' in 'haystack'. 12 /* Test strrpos() function with unexpected inputs for 'haystack', 'needle' & 'offset' arguments */ 14 echo "*** Testing strrpos() function: with unexpected values for haystack, needle & offset ***\n"; 92 *** Testing strrpos() function: with unexpected values for haystack, needle & offset *** 105 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 111 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 117 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 123 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | bug77853.phpt | 2 Bug #77853: Inconsistent substr_compare behaviour with empty haystack
|
H A D | strrchr_variation11.phpt | 2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function with unexpected inputs for haystack and needle */ 12 echo "*** Testing strrchr() function: with unexpected inputs for haystack and needle ***\n"; 92 *** Testing strrchr() function: with unexpected inputs for haystack and needle ***
|
H A D | strrpos_variation10.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 11 * an expected type of input for 'haystack' argument 30 $haystack = "string 0 1 2 -2 10.5 -10.5 10.5e10 10.6E-10 .5 array true false object \"\" null Resou… 86 var_dump( strrpos($haystack, $needles[$index]) );
|
H A D | bug40754.phpt | 56 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 59 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | strrpos_variation11.phpt | 2 Test strrpos() function : usage variations - unexpected inputs for 'haystack' and 'needle' arguments 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 with unexpected inputs for 'haystack' and 'needle' arguments */ 12 echo "*** Testing strrpos() function with unexpected values for haystack and needle ***\n"; 83 $haystack = $values[$index]; 92 *** Testing strrpos() function with unexpected values for haystack and needle ***
|
H A D | stristr_basic.phpt | 5 /* Prototype: string stristr ( string $haystack , mixed $needle [, bool $before_needle ] )
|
H A D | strpbrk_basic.phpt | 5 /* Prototype : array strpbrk(string haystack, string char_list)
|
H A D | stripos_variation11.phpt | 2 Test stripos() function : usage variations - unexpected inputs for 'haystack' and 'needle' arguments 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 10 /* Test stripos() function with unexpected inputs for 'haystack' and 'needle' arguments */ 12 echo "*** Testing stripos() function with unexpected values for haystack and needle ***\n"; 83 $haystack = $values[$index]; 92 *** Testing stripos() function with unexpected values for haystack and needle ***
|
H A D | stripos_variation10.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 11 * an expected type of input for 'haystack' argument 30 $haystack = "string 0 1 2 -2 10.5 -10.5 10.5e10 10.6E-10 .5 array true false object \"\" null Resou… 86 var_dump( stripos($haystack, $needles[$index]) );
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_search_variation4.phpt | 2 Test array_search() function : usage variations - haystack as resource/multi dimensional array 6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] ) 7 …* Description: Searches haystack for needle and returns the key if it is found in the array, FALSE…
|
/PHP-7.4/Zend/ |
H A D | zend_operators.h | 86 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t… 148 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnstr() argument 150 const char *p = haystack; in zend_memnstr() 159 off_p = end - haystack; in zend_memnstr() 185 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr() 206 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnrstr() argument 214 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr() 217 off_p = end - haystack; in zend_memnrstr() 228 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr() 235 } while (p-- >= haystack); in zend_memnrstr() [all …]
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_substr_count_basic.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
|
H A D | mb_strpos_basic.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
|
H A D | mb_strrpos_basic.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]…
|
H A D | mb_strrchr_variation5.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
|
H A D | mb_strstr_variation5.phpt | 10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
|
H A D | mb_strrchr_basic.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
|
H A D | mb_strrchr_variation6.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
|
H A D | mb_strstr_basic.phpt | 10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
|
/PHP-7.4/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter.h | 208 mbfl_strpos(mbfl_string *haystack, mbfl_string *needle, ssize_t offset, int reverse); 214 mbfl_substr_count(mbfl_string *haystack, mbfl_string *needle);
|
/PHP-7.4/ext/iconv/tests/ |
H A D | iconv_strrpos_basic.phpt | 12 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
|
H A D | iconv_strpos_basic.phpt | 12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
|