/php-src/ext/intl/ |
H A D | php_intl.stub.php | 434 function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int|false {} argument 436 function grapheme_stripos(string $haystack, string $needle, int $offset = 0): int|false {} argument 438 function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): int|false {} argument 440 function grapheme_strripos(string $haystack, string $needle, int $offset = 0): int|false {} argument 444 function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false): string|fals… argument 446 function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false): string|fal… argument
|
/php-src/ext/intl/tests/ |
H A D | grapheme_empty.phpt | 2 Test grapheme_strpos-alike functions with empty needle
|
H A D | grapheme.phpt | 57 $res_str .= "\n" . 'function grapheme_strpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 126 $res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 194 $res_str .= "\n" . 'function grapheme_strrpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 260 $res_str .= "\n" . 'function grapheme_strripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 430 …$res_str .= "\n" . 'function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}' . "\n… 811 function grapheme_strpos($haystack, $needle, $offset = 0) {} 855 function grapheme_stripos($haystack, $needle, $offset = 0) {} 897 function grapheme_strrpos($haystack, $needle, $offset = 0) {} 936 function grapheme_strripos($haystack, $needle, $offset = 0) {} 1041 function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {} [all …]
|
H A D | grapheme2.phpt | 57 $res_str .= "\n" . 'function grapheme_strpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 126 $res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 194 $res_str .= "\n" . 'function grapheme_strrpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 260 $res_str .= "\n" . 'function grapheme_strripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 426 …$res_str .= "\n" . 'function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}' . "\n… 799 function grapheme_strpos($haystack, $needle, $offset = 0) {} 843 function grapheme_stripos($haystack, $needle, $offset = 0) {} 885 function grapheme_strrpos($haystack, $needle, $offset = 0) {} 924 function grapheme_strripos($haystack, $needle, $offset = 0) {} 1029 function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {} [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | bug45923.phpt | 8 function section($func, $haystack, $needle) 14 var_dump($func($haystack, $needle, $offset));
|
H A D | mb_strpos.phpt | 88 // So invalid byte sequences would match '?', both from haystack to needle 89 // and needle to haystack
|
H A D | mb_stripos.phpt | 108 // to needle and needle to haystack
|
H A D | mb_strripos_variation5_Bug45923.phpt | 10 * and the needle appears at the same positions in both strings
|
H A D | mb_stripos_empty_needle.phpt | 2 Test mb_stripos() function : with empty needle
|
H A D | mb_stripos_variation5_Bug45923.phpt | 10 * and the needle appears at the same positions in both strings
|
H A D | mb_strpos_empty_needle.phpt | 2 Test mb_strpos() function : with empty needle
|
H A D | mb_strpos_variation5.phpt | 10 * and the needle appears at the same positions in both strings
|
H A D | mb_strripos_empty_needle.phpt | 2 Test mb_strripos() function : with empty needle
|
H A D | mb_strrpos_empty_needle.phpt | 2 Test mb_strrpos() function : with empty needle
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 1907 needle_u8 = needle; in mb_find_strpos() 1927 …ointer_to_offset_utf8((unsigned char*)ZSTR_VAL(needle), (unsigned char*)ZSTR_VAL(needle) + ZSTR_LE… in mb_find_strpos() 1944 if (needle_u8 != needle) { in mb_find_strpos() 1974 Z_PARAM_STR(needle) in PHP_FUNCTION() 2003 Z_PARAM_STR(needle) in PHP_FUNCTION() 2033 Z_PARAM_STR(needle) in PHP_FUNCTION() 2064 Z_PARAM_STR(needle) in PHP_FUNCTION() 2158 Z_PARAM_STR(needle) in php_mb_strstr_variants() 2230 Z_PARAM_STR(needle) in PHP_FUNCTION() 2259 needle_u8 = needle; in PHP_FUNCTION() [all …]
|
H A D | mbstring.h | 67 MBSTRING_API size_t php_mb_stripos(bool mode, zend_string *haystack, zend_string *needle, zend_long…
|
H A D | mbstring_arginfo.h | 53 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0) 66 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0) 79 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
|
/php-src/ext/standard/ |
H A D | basic_functions.stub.php | 1656 function in_array(mixed $needle, array $haystack, bool $strict = false): bool {} argument 1661 function array_search(mixed $needle, array $haystack, bool $strict = false): int|string|false {} argument 2412 function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {} 2415 function strchr(string $haystack, string $needle, bool $before_needle = false): string|false {} 2422 function strpos(string $haystack, string $needle, int $offset = 0): int|false {} 2425 function stripos(string $haystack, string $needle, int $offset = 0): int|false {} 2428 function strrpos(string $haystack, string $needle, int $offset = 0): int|false {} 2431 function strripos(string $haystack, string $needle, int $offset = 0): int|false {} 2443 function str_contains(string $haystack, string $needle): bool {} 2449 function str_starts_with(string $haystack, string $needle): bool {} [all …]
|
H A D | php_string.h | 50 PHPAPI zend_string *php_str_to_str(const char *haystack, size_t length, const char *needle,
|
/php-src/ext/standard/tests/array/ |
H A D | array_search_variation1.phpt | 2 Test array_search() function : usage variations - different needle values 5 /* Test array_search() with different possible needle values */ 7 echo "*** Testing array_search() with different needle values ***\n"; 58 *** Testing array_search() with different needle values ***
|
H A D | in_array_variation1.phpt | 5 /* Test in_array() with different possible needle values */ 7 echo "*** Testing in_array() with different needle values ***\n"; 58 *** Testing in_array() with different needle values ***
|
/php-src/ext/iconv/tests/ |
H A D | iconv_strpos_variation5.phpt | 12 * and the needle appears at the same positions in both strings
|
/php-src/ext/standard/tests/strings/ |
H A D | stripos_variation8.phpt | 22 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
|
/php-src/ext/phar/phar/ |
H A D | pharcommand.inc | 191 * Whether a string ends with another needle. 194 * @param string $needle The needle. 196 * substr'ed if the string ends with the needle. 198 static function strEndsWith($haystack, $needle) 200 return substr($haystack, -strlen($needle)) == $needle;
|
/php-src/main/ |
H A D | rfc1867.c | 555 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) in php_ap_memstr() argument 561 while( (ptr = memchr(ptr, needle[0], len)) ) { in php_ap_memstr() 567 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
|