Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 107) sorted by last modified time

12345

/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.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)
H A Dmbstring.h67 MBSTRING_API size_t php_mb_stripos(bool mode, zend_string *haystack, zend_string *needle, zend_long…
/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.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 …]
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]) {
/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 Dbasic_functions_arginfo.h150 ZEND_ARG_TYPE_INFO(0, needle, IS_MIXED, 0)
156 ZEND_ARG_TYPE_INFO(0, needle, IS_MIXED, 0)
888 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
898 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
912 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
1042 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
1082 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
H A Dstring.c1770 Z_PARAM_STR(needle)
1813 Z_PARAM_STR(needle)
1861 Z_PARAM_STR(needle)
1890 Z_PARAM_STR(needle)
1919 Z_PARAM_STR(needle)
1928 ZSTR_VAL(needle), ZSTR_LEN(needle)) == 0);
1945 ZSTR_VAL(needle), ZSTR_LEN(needle),
1962 Z_PARAM_STR(needle)
2012 Z_PARAM_STR(needle)
2038 zend_string *needle; local
[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/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 …]
/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/sapi/fpm/tests/
H A Dtester.inc577 * Run until needle is found in the log.
/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/ext/iconv/
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/sapi/cli/
H A Dphp_cli_server.c307 http_response_status_code_pair needle = {code, NULL}, in get_status_string() local
310 result = bsearch(&needle, http_status_map, http_status_map_len, sizeof(needle), status_comp); in get_status_string()
/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()
/php-src/Zend/tests/
H A Dframeless_jmp_001.phpt6 function test($needle, $haystack) {
7 return in_array($needle, $haystack, true);
/php-src/ext/pdo_dblib/tests/
H A Dconfig.inc12 function strstartswith($haystack, $needle) {
13 return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
/php-src/ext/phar/tests/
H A Dbug74991.phpt11 touch('path/needle.php');
13 …o 4096 (MAXPATHLEN) into 'phar://..sample.phar/some:xx..xx:pat' so it will fail to find needle.php:
14 …H_SEPARATOR . PATH_SEPARATOR . PATH) + OVERFLOW) . PATH_SEPARATOR . PATH); require('needle.php');";
21 unlink('path/needle.php');
/php-src/ext/standard/tests/strings/
H A Dstrrchr_basic.phpt6 var_dump( strrchr("Hello, World", "H") ); //needle as single char
7 var_dump( strrchr("Hello, World", "H", true) ); //needle as single char
8 var_dump( strrchr("Hello, World", "Hello") ); //needle as a first word of haystack
9 var_dump( strrchr("Hello, World", "Hello", true) ); //needle as a first word of haystack
21 //needle as second word of haystack
27 //needle as special char
33 var_dump( strrchr("Hello, World", "Hello, World") ); //needle as haystack
34 var_dump( strrchr("Hello, World", "Hello, World", true) ); //needle as haystack
36 //needle string containing one existing and one non-existing char
40 //multiple existence of needle in haystack
[all …]
/php-src/ext/mbstring/tests/
H A Dmb_stripos.phpt108 // to needle and needle to haystack
H A Dmb_strpos.phpt88 // So invalid byte sequences would match '?', both from haystack to needle
89 // and needle to haystack

Completed in 132 milliseconds

12345