/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_strrpos_variation1.phpt | 2 Test mb_strrpos() function : usage variations - pass different data types to $haystack arg 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() different data types as $haystack argument to test behaviour 46 // unexpected values to be passed to $haystack argument
|
H A D | mb_strripos_variation2.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 23 $haystack = 'string_val'; 99 var_dump( mb_strripos($haystack, $input, $offset, $encoding));
|
H A D | mb_strrpos_variation2.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 22 $haystack = 'hello, world'; 98 var_dump( mb_strrpos($haystack, $input, $offset, $encoding));
|
H A D | mb_substr_count_variation2.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 22 $haystack = 'hello, world'; 96 var_dump( mb_substr_count($haystack, $input) );
|
H A D | mb_stripos_variation2.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 23 $haystack = 'string_val'; 99 var_dump( mb_stripos($haystack, $input, $offset, $encoding));
|
H A D | mb_strpos_variation2.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 22 $haystack = 'string_val'; 98 var_dump( mb_strpos($haystack, $input, $offset, $encoding));
|
/PHP-7.2/ext/iconv/tests/ |
H A D | iconv_strpos_variation1.phpt | 2 Test iconv_strpos() function : usage variations - pass different data types to $haystack arg 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 16 * Pass iconv_strpos different data types as $haystack arg to test behaviour 46 // unexpected values to be passed to $haystack argument
|
H A D | iconv_strrpos_variation2.phpt | 10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset]) 22 $haystack = 'hello, world'; 97 var_dump( iconv_strrpos($haystack, $input, $encoding));
|
H A D | iconv_strpos_variation2.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 22 $haystack = 'string_val'; 98 var_dump( iconv_strpos($haystack, $input, $offset, $encoding));
|
/PHP-7.2/ext/standard/tests/strings/ |
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 | 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 | stripos_variation15.phpt | 2 Test stripos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' … 7 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 12 /* Test stripos() function with unexpected inputs for 'haystack', 'needle' & 'offset' arguments */ 14 echo "*** Testing stripos() function with unexpected values for haystack, needle & offset ***\n"; 92 *** Testing stripos() function with unexpected values for haystack, needle & offset ***
|
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 | strripos_error.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 | strrpos_error.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation14.phpt | 7 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 8 * Description: Find position of last occurrence of 'needle' in 'haystack'. 31 $haystack = "hello world"; 83 var_dump( strrpos($haystack, $needle, $offsets[$index]) );
|
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]) );
|
H A D | bug77853.phpt | 2 Bug #77853: Inconsistent substr_compare behaviour with empty haystack
|
H A D | stripos_variation14.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 29 $haystack = "hello world"; 81 var_dump( stripos($haystack, $needle, $offsets[$index]) );
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | array_search_variation3.phpt | 2 Test array_search() function : usage variations - haystack as sub-array/object 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_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…
|
H A D | array_search_errors.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_errors.phpt | 6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] ) 7 * Description: Searches haystack for needle and returns TRUE
|
/PHP-7.2/Zend/ |
H A D | zend_operators.h | 90 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t… 152 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnstr() argument 154 const char *p = haystack; in zend_memnstr() 163 off_p = end - haystack; in zend_memnstr() 189 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr() 210 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, char *end) in zend_memnrstr() argument 218 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr() 221 off_p = end - haystack; in zend_memnrstr() 232 …if ((p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1)) && ne == p[needle_len-… in zend_memnrstr() 237 } while (p-- >= haystack); in zend_memnrstr() [all …]
|