/PHP-7.4/ext/mbstring/tests/ |
H A D | bug43840.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 24 $needle = base64_decode('44CC'); 29 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
|
H A D | bug43841.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 23 $needle = base64_decode('44CC'); 28 var_dump( mb_strrpos($string_mb, $needle, $i, 'UTF-8') );
|
H A D | mb_substr_count_basic.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
|
/PHP-7.4/ext/standard/ |
H A D | string.c | 1831 zval *needle; local 1841 Z_PARAM_ZVAL(needle) 1855 orig_needle = estrndup(Z_STRVAL_P(needle), Z_STRLEN_P(needle)); 1891 zval *needle; local 1900 Z_PARAM_ZVAL(needle) 1945 zval *needle; local 1953 Z_PARAM_ZVAL(needle) 2008 zval *needle; local 2143 zend_string *needle; local 2256 zval *needle; local [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | strripos_variation3.phpt | 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'
|
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_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 ***
|
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"; 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 | stripos_variation5.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
|
H A D | stripos_variation8.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 27 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
|
H A D | stripos_variation12.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
|
H A D | stripos_variation3.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
|
H A D | stripos_variation7.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | in_array_variation3.phpt | 6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] ) 7 * Description: Searches haystack for needle and returns TRUE
|
H A D | array_search_variation3.phpt | 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…
|
H A D | array_search_variation2.phpt | 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…
|
H A D | in_array_variation2.phpt | 6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] ) 7 * Description: Searches haystack for needle and returns TRUE
|
H A D | array_search_variation4.phpt | 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…
|
H A D | in_array_variation4.phpt | 6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] ) 7 * Description: Searches haystack for needle and returns TRUE
|
H A D | array_search_variation1.phpt | 2 Test array_search() function : usage variations - different needle values 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… 11 /* Test array_search() with different possible needle values */ 13 echo "*** Testing array_search() with different needle values ***\n"; 64 *** Testing array_search() with different needle values ***
|
/PHP-7.4/Zend/ |
H A D | zend_operators.h | 148 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnstr() argument 151 const char ne = needle[needle_len-1]; in zend_memnstr() 156 return (const char *)memchr(p, *needle, (end-p)); in zend_memnstr() 170 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) { in zend_memnstr() 171 if (!memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr() 185 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr() 209 const char ne = needle[needle_len-1]; in zend_memnrstr() 214 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr() 228 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr() 232 if (ne == p[needle_len-1] && !memcmp(needle + 1, p + 1, needle_len - 2)) { in zend_memnrstr() [all …]
|
/PHP-7.4/ext/iconv/tests/ |
H A D | iconv_strpos_variation5.phpt | 12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 20 * and the needle appears at the same positions in both strings
|
/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);
|
H A D | mbfilter.c | 717 mbfl_wchar_device needle; member 746 h = (int *)pc->needle.buffer; in collector_strpos() 751 m = (int *)pc->needle.buffer; in collector_strpos() 816 mbfl_string *needle, in mbfl_strpos() argument 825 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) { in mbfl_strpos() 856 needle_u8 = needle; in mbfl_strpos() 1026 mbfl_string *needle in mbfl_substr_count() argument 1040 needle->encoding, in mbfl_substr_count() 1046 mbfl_convert_filter_feed_string(filter, needle->val, needle->len); in mbfl_substr_count() 1049 pc.needle_len = pc.needle.pos; in mbfl_substr_count() [all …]
|