Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 107) sorted by path

12345

/php-src/Zend/tests/
H A Dframeless_jmp_001.phpt6 function test($needle, $haystack) {
7 return in_array($needle, $haystack, true);
/php-src/Zend/
H A Dzend_compile.c4501 znode subject, needle; in zend_compile_func_array_key_exists() local
4507 zend_compile_expr(&needle, args->child[0]); in zend_compile_func_array_key_exists()
4510 zend_emit_op_tmp(result, ZEND_ARRAY_KEY_EXISTS, &needle, &subject); in zend_compile_func_array_key_exists()
H A Dzend_operators.c3650 static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t ne… argument
3659 td[(unsigned char)needle[i]] = i + 1;
3665 td[(unsigned char)needle[i]] = (int)needle_len - i;
3671 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t… argument
3681 zend_memnstr_ex_pre(td, needle, needle_len, 0);
3688 if (needle[i] != p[i]) {
3705 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_… argument
3715 zend_memnstr_ex_pre(td, needle, needle_len, 1);
3722 if (needle[i] != p[i]) {
H A Dzend_operators.h172 return (const char *)memchr(p, *needle, (end-p)); in zend_memnstr()
184 const char ne = needle[needle_len-1]; in zend_memnstr()
188 if ((p = (const char *)memchr(p, *needle, (end-p+1)))) { in zend_memnstr()
189 if (ne == p[needle_len-1] && !memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr()
200 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr()
248 const char ne = needle[needle_len-1]; in zend_memnrstr()
252 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr()
263 return zend_memnrstr_ex(haystack, needle, needle_len, end); in zend_memnrstr()
943 const char first_lower = zend_tolower_ascii(*needle); in zend_memnistr()
944 const char first_upper = zend_toupper_ascii(*needle); in zend_memnistr()
[all …]
/php-src/ext/iconv/
H A Diconv.stub.php31 function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null):… argument
33 function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {} argument
H A Diconv_arginfo.h18 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
25 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
/php-src/ext/iconv/tests/
H A Diconv_strpos.phpt9 function foo($haystk, $needle, $offset, $to_charset = false, $from_charset = false)
15 var_dump(strpos($haystk, $needle, $offset));
21 var_dump(iconv_strpos($haystk, $needle, $offset, $to_charset));
23 var_dump(iconv_strpos($haystk, $needle, $offset));
H A Diconv_strpos_error2.phpt13 $needle = 'world';
17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
H A Diconv_strpos_variation5.phpt12 * and the needle appears at the same positions in both strings
H A Diconv_strrpos.phpt14 function foo($haystk, $needle, $to_charset = false, $from_charset = false)
21 var_dump(iconv_strrpos($haystk, $needle, $to_charset));
24 var_dump(iconv_strrpos($haystk, $needle));
H A Diconv_strrpos_error2.phpt14 $needle = '123';
18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
/php-src/ext/intl/grapheme/
H A Dgrapheme_string.c84 char *haystack, *needle; in PHP_FUNCTION() local
134 char *haystack, *needle; in PHP_FUNCTION() local
161 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
176 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
196 char *haystack, *needle; in PHP_FUNCTION() local
229 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
251 char *haystack, *needle; in PHP_FUNCTION() local
277 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
293 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
525 char *haystack, *needle; in strstr_common_handler() local
[all …]
H A Dgrapheme_util.c99 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument
118 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16()
333 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_l… in grapheme_strrpos_ascii() argument
352 if (*e == *needle) { in grapheme_strrpos_ascii()
361 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
H A Dgrapheme_util.h26 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_l…
28 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len…
29 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,…
/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
H A Dphp_intl_arginfo.h463 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
481 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
/php-src/ext/intl/tests/
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 …]
H A Dgrapheme_empty.phpt2 Test grapheme_strpos-alike functions with empty needle
H A Dgrapheme_out_of_bounds.phpt123 // Empty needle + out of bounds
/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.stub.php91 function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): in… argument
93 function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): i… argument
95 function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): i… argument
97 function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): … argument
100 function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding… argument
103 function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encodin… argument
106 function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encodin… argument
109 function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encodi… argument
111 function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {} argument
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/mbstring/tests/
H A Dbug43840.phpt16 $needle = base64_decode('44CC');
22 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );

Completed in 123 milliseconds

12345