Home
last modified time | relevance | path

Searched refs:haystack (Results 76 – 100 of 132) sorted by relevance

123456

/PHP-7.4/ext/standard/tests/strings/
H A Dstripos_basic2.phpt5 /* 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 Dstristr_error.phpt6 /* 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 Dstrrpos_variation15.phpt2 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 Dbug77853.phpt2 Bug #77853: Inconsistent substr_compare behaviour with empty haystack
H A Dstrrchr_variation11.phpt2 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 Dstrrpos_variation10.phpt5 /* 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 Dbug40754.phpt56 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 Dstrrpos_variation11.phpt2 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 Dstristr_basic.phpt5 /* Prototype: string stristr ( string $haystack , mixed $needle [, bool $before_needle ] )
H A Dstrpbrk_basic.phpt5 /* Prototype : array strpbrk(string haystack, string char_list)
H A Dstripos_variation11.phpt2 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 Dstripos_variation10.phpt5 /* 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 Darray_search_variation4.phpt2 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 Dzend_operators.h86 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 Dmb_substr_count_basic.phpt10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
H A Dmb_strpos_basic.phpt10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
H A Dmb_strrpos_basic.phpt10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]…
H A Dmb_strrchr_variation5.phpt10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
H A Dmb_strstr_variation5.phpt10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
H A Dmb_strrchr_basic.phpt10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
H A Dmb_strrchr_variation6.phpt10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
H A Dmb_strstr_basic.phpt10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
/PHP-7.4/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.h208 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 Diconv_strrpos_basic.phpt12 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
H A Diconv_strpos_basic.phpt12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])

Completed in 34 milliseconds

123456