/PHP-7.4/ext/libxml/ |
H A D | libxml.c | 427 char *needle = estrdup("charset="); in php_libxml_input_buffer_create_filename() local 429 char *encoding = php_stristr(haystack, needle, Z_STRLEN_P(header), sizeof("charset=")-1); in php_libxml_input_buffer_create_filename() 457 efree(needle); in php_libxml_input_buffer_create_filename()
|
/PHP-7.4/ext/mbstring/ |
H A D | mbstring.c | 257 ZEND_ARG_INFO(0, needle) 264 ZEND_ARG_INFO(0, needle) 271 ZEND_ARG_INFO(0, needle) 278 ZEND_ARG_INFO(0, needle) 285 ZEND_ARG_INFO(0, needle) 292 ZEND_ARG_INFO(0, needle) 2819 if (!needle.len) { in PHP_FUNCTION() 5346 needle.len = len; in php_mb_stripos() 5348 if (!needle.val) { in php_mb_stripos() 5383 if (needle.val) { in php_mb_stripos() [all …]
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | tester.inc | 395 * Run until needle is found in the log. 397 * @param string $needle 402 public function runTill(string $needle, $max = 10) 411 if (preg_match($needle, $line) === 1) {
|
/PHP-7.4/Zend/ |
H A D | zend_operators.c | 3160 static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t ne… argument 3169 td[(unsigned char)needle[i]] = i + 1; 3175 td[(unsigned char)needle[i]] = (int)needle_len - i; 3181 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t… argument 3191 zend_memnstr_ex_pre(td, needle, needle_len, 0); 3198 if (needle[i] != p[i]) { 3215 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_… argument 3225 zend_memnstr_ex_pre(td, needle, needle_len, 1); 3232 if (needle[i] != p[i]) {
|
H A D | zend_compile.c | 3706 znode subject, needle; in zend_compile_func_array_key_exists() local 3712 zend_compile_expr(&needle, args->child[0]); in zend_compile_func_array_key_exists() 3715 zend_emit_op_tmp(result, ZEND_ARRAY_KEY_EXISTS, &needle, &subject); in zend_compile_func_array_key_exists()
|
H A D | zend_operators.h | 148 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnstr() argument 151 const char ne = needle[needle_len-1]; in zend_memnstr() 156 return (const char *)memchr(p, *needle, (end-p)); in zend_memnstr() 170 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) { in zend_memnstr() 171 if (!memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr() 185 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr() 209 const char ne = needle[needle_len-1]; in zend_memnrstr() 214 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr() 228 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr() 232 if (ne == p[needle_len-1] && !memcmp(needle + 1, p + 1, needle_len - 2)) { in zend_memnrstr() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | string.c | 1831 zval *needle; local 1841 Z_PARAM_ZVAL(needle) 1855 orig_needle = estrndup(Z_STRVAL_P(needle), Z_STRLEN_P(needle)); 1891 zval *needle; local 1900 Z_PARAM_ZVAL(needle) 1945 zval *needle; local 1953 Z_PARAM_ZVAL(needle) 2008 zval *needle; local 2143 zend_string *needle; local 2256 zval *needle; local [all …]
|
H A D | basic_functions.c | 308 ZEND_ARG_INFO(0, needle) 314 ZEND_ARG_INFO(0, needle) 2233 ZEND_ARG_INFO(0, needle) 2239 ZEND_ARG_INFO(0, needle) 2245 ZEND_ARG_INFO(0, needle) 2251 ZEND_ARG_INFO(0, needle) 2257 ZEND_ARG_INFO(0, needle) 2263 ZEND_ARG_INFO(0, needle) 2269 ZEND_ARG_INFO(0, needle) 2425 ZEND_ARG_INFO(0, needle)
|
/PHP-7.4/ext/intl/grapheme/ |
H A D | grapheme_util.c | 133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument 152 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status ); in grapheme_strpos_utf16() 351 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_… in grapheme_strrpos_ascii() argument 370 if (*e == *needle) { in grapheme_strrpos_ascii() 379 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli_server.c | 299 http_response_status_code_pair needle = {code, NULL}, in get_status_string() local 302 result = bsearch(&needle, http_status_map, http_status_map_len, sizeof(needle), status_comp); in get_status_string()
|
/PHP-7.4/main/ |
H A D | rfc1867.c | 585 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) in php_ap_memstr() argument 591 while( (ptr = memchr(ptr, needle[0], len)) ) { in php_ap_memstr() 597 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
|
/PHP-7.4/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter.c | 717 mbfl_wchar_device needle; member 746 h = (int *)pc->needle.buffer; in collector_strpos() 751 m = (int *)pc->needle.buffer; in collector_strpos() 816 mbfl_string *needle, in mbfl_strpos() argument 825 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) { in mbfl_strpos() 856 needle_u8 = needle; in mbfl_strpos() 1026 mbfl_string *needle in mbfl_substr_count() argument 1040 needle->encoding, in mbfl_substr_count() 1046 mbfl_convert_filter_feed_string(filter, needle->val, needle->len); in mbfl_substr_count() 1049 pc.needle_len = pc.needle.pos; in mbfl_substr_count() [all …]
|
/PHP-7.4/ext/iconv/ |
H A D | iconv.c | 75 ZEND_ARG_INFO(0, needle) 82 ZEND_ARG_INFO(0, needle)
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | strrchr_variation10.phpt | 2 Test strrchr() function : usage variations - unexpected inputs for needle 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function: with unexpected inputs for needle 14 echo "*** Testing strrchr() function with unexpected inputs for needle ***\n"; 133 *** Testing strrchr() function with unexpected inputs for needle *** 172 Warning: strrchr(): needle is not a string or an integer in %s on line %d 176 Warning: strrchr(): needle is not a string or an integer in %s on line %d 180 Warning: strrchr(): needle is not a string or an integer in %s on line %d 184 Warning: strrchr(): needle is not a string or an integer in %s on line %d 188 Warning: strrchr(): needle is not a string or an integer in %s on line %d [all …]
|
H A D | strrchr_variation11.phpt | 2 Test strrchr() function : usage variations - unexpected inputs for haystack and needle 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function with unexpected inputs for haystack and needle */ 12 echo "*** Testing strrchr() function: with unexpected inputs for haystack and needle ***\n"; 92 *** Testing strrchr() function: with unexpected inputs for haystack and needle ***
|
H A D | strrchr_variation12.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 24 //needle as null string 26 //needle as NULL
|
H A D | strripos_basic2.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' 15 echo "\n-- regular string for haystack & needle, with various offsets --\n"; 21 echo "\n-- heredoc string for haystack & needle, with various offsets --\n"; 42 -- regular string for haystack & needle, with various offsets -- 48 -- heredoc string for haystack & needle, with various offsets --
|
H A D | strripos_variation1.phpt | 2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum… 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' 10 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */ 62 $haystack //haystack as needle 65 /* loop through to get the position of the needle in haystack string */ 67 foreach ($needles as $needle) { 69 var_dump( strripos($haystack, $needle) ); 70 var_dump( strripos($haystack, $needle, 1) ); 71 var_dump( strripos($haystack, $needle, 20) ); [all …]
|
H A D | strripos_variation2.phpt | 2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum… 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' 62 42, //needle as int(ASCII value of '*') 63 $haystack //haystack as needle 66 /* loop through to get the position of the needle in haystack string */ 68 foreach ($needles as $needle) { 70 var_dump( strripos($haystack, $needle) ); 71 var_dump( strripos($haystack, $needle, 1) ); 72 var_dump( strripos($haystack, $needle, 20) ); [all …]
|
H A D | strripos_variation3.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 | strripos_variation4.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_variation10.phpt | 2 Test strrpos() function : usage variations - unexpected inputs for 'needle' argument 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 10 /* Test strrpos() function with unexpected inputs for 'needle' and 14 echo "*** Testing strrpos() function with unexpected values for needle ***\n"; 95 *** Testing strrpos() function with unexpected values for needle *** 134 Warning: strrpos(): needle is not a string or an integer in %s on line %d 138 Warning: strrpos(): needle is not a string or an integer in %s on line %d 142 Warning: strrpos(): needle is not a string or an integer in %s on line %d 146 Warning: strrpos(): needle is not a string or an integer in %s on line %d [all …]
|
H A D | strrpos_variation11.phpt | 2 Test strrpos() function : usage variations - unexpected inputs for 'haystack' and 'needle' arguments 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'. 10 /* Test strrpos() function with unexpected inputs for 'haystack' and 'needle' arguments */ 12 echo "*** Testing strrpos() function with unexpected values for haystack and needle ***\n"; 92 *** Testing strrpos() function with unexpected values for haystack and needle ***
|
H A D | strstr.phpt | 72 echo "-- Passing objects as string and needle --\n"; 85 class needle 91 $obj_needle = new needle; 141 $needle = 'world'; 167 var_dump( strstr($string) ); // without "needle" 342 -- Passing objects as string and needle -- 345 -- passing an array as string and needle -- 352 -- passing Resources as string and needle -- 407 Warning: strstr(): Empty needle in %s on line %d 419 Warning: strstr(): Empty needle in %s on line %d [all …]
|
H A D | strpos.phpt | 99 echo "-- Passing objects as string and needle --\n"; 112 class needle 118 $obj_needle = new needle; 168 $needle = 'world'; 194 var_dump( strpos($string) ); // without "needle" 296 -- Passing objects as string and needle -- 299 -- Passing an array as string and needle -- 306 -- Passing Resources as string and needle -- 345 Warning: strpos(): Empty needle in %s on line %d 357 Warning: strpos(): Empty needle in %s on line %d [all …]
|