Home
last modified time | relevance | path

Searched refs:needle (Results 76 – 100 of 107) sorted by relevance

12345

/php-src/ext/intl/
H A Dphp_intl.stub.php434 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 Dgrapheme_empty.phpt2 Test grapheme_strpos-alike functions with empty needle
H A Dgrapheme.phpt57 $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 Dgrapheme2.phpt57 $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 Dbug45923.phpt8 function section($func, $haystack, $needle)
14 var_dump($func($haystack, $needle, $offset));
H A Dmb_strpos.phpt88 // So invalid byte sequences would match '?', both from haystack to needle
89 // and needle to haystack
H A Dmb_stripos.phpt108 // to needle and needle to haystack
H A Dmb_strripos_variation5_Bug45923.phpt10 * and the needle appears at the same positions in both strings
H A Dmb_stripos_empty_needle.phpt2 Test mb_stripos() function : with empty needle
H A Dmb_stripos_variation5_Bug45923.phpt10 * and the needle appears at the same positions in both strings
H A Dmb_strpos_empty_needle.phpt2 Test mb_strpos() function : with empty needle
H A Dmb_strpos_variation5.phpt10 * and the needle appears at the same positions in both strings
H A Dmb_strripos_empty_needle.phpt2 Test mb_strripos() function : with empty needle
H A Dmb_strrpos_empty_needle.phpt2 Test mb_strrpos() function : with empty needle
/php-src/ext/mbstring/
H A Dmbstring.c1907 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 Dmbstring.h67 MBSTRING_API size_t php_mb_stripos(bool mode, zend_string *haystack, zend_string *needle, zend_long…
H A Dmbstring_arginfo.h53 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 Dbasic_functions.stub.php1656 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 Dphp_string.h50 PHPAPI zend_string *php_str_to_str(const char *haystack, size_t length, const char *needle,
/php-src/ext/standard/tests/array/
H A Darray_search_variation1.phpt2 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 Din_array_variation1.phpt5 /* 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 Diconv_strpos_variation5.phpt12 * and the needle appears at the same positions in both strings
/php-src/ext/standard/tests/strings/
H A Dstripos_variation8.phpt22 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
/php-src/ext/phar/phar/
H A Dpharcommand.inc191 * 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 Drfc1867.c555 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()

Completed in 71 milliseconds

12345