/PHP-7.4/Zend/ |
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.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_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/iconv/ |
H A D | iconv.c | 75 ZEND_ARG_INFO(0, needle) 82 ZEND_ARG_INFO(0, needle)
|
/PHP-7.4/ext/iconv/tests/ |
H A D | iconv_strpos.phpt | 14 function foo($haystk, $needle, $offset, $to_charset = false, $from_charset = false) 19 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 D | iconv_strpos_basic.phpt | 12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
|
H A D | iconv_strpos_error2.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 21 $needle = 'world'; 25 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | iconv_strpos_variation5.phpt | 12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 20 * and the needle appears at the same positions in both strings
|
H A D | iconv_strrpos.phpt | 14 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 D | iconv_strrpos_basic.phpt | 12 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
|
H A D | iconv_strrpos_error2.phpt | 10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset]) 22 $needle = '123'; 26 var_dump(iconv_strrpos($haystack, $needle , $encoding));
|
/PHP-7.4/ext/intl/grapheme/ |
H A D | grapheme_string.c | 110 char *haystack, *needle; in PHP_FUNCTION() local 173 char *haystack, *needle; in PHP_FUNCTION() local 207 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION() 222 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION() 243 char *haystack, *needle; in PHP_FUNCTION() local 283 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION() 306 char *haystack, *needle; in PHP_FUNCTION() local 339 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION() 355 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION() 594 char *haystack, *needle; in strstr_common_handler() local [all …]
|
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()
|
H A D | grapheme_util.h | 28 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_l… 30 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len… 31 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,…
|
/PHP-7.4/ext/intl/ |
H A D | php_intl.c | 218 ZEND_ARG_INFO(0, needle) 230 ZEND_ARG_INFO(0, needle)
|
/PHP-7.4/ext/intl/tests/ |
H A D | grapheme.phpt | 56 $res_str .= "\n" . 'function grapheme_strpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 125 $res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 193 $res_str .= "\n" . 'function grapheme_strrpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 259 $res_str .= "\n" . 'function grapheme_strripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 421 …$res_str .= "\n" . 'function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}' . "\n… 794 function grapheme_strpos($haystack, $needle, $offset = 0) {} 838 function grapheme_stripos($haystack, $needle, $offset = 0) {} 880 function grapheme_strrpos($haystack, $needle, $offset = 0) {} 919 function grapheme_strripos($haystack, $needle, $offset = 0) {} 1024 function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {} [all …]
|
H A D | grapheme2.phpt | 56 $res_str .= "\n" . 'function grapheme_strpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 125 $res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 193 $res_str .= "\n" . 'function grapheme_strrpos($haystack, $needle, $offset = 0) {}' . "\n\n"; 259 $res_str .= "\n" . 'function grapheme_strripos($haystack, $needle, $offset = 0) {}' . "\n\n"; 421 …$res_str .= "\n" . 'function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}' . "\n… 794 function grapheme_strpos($haystack, $needle, $offset = 0) {} 838 function grapheme_stripos($haystack, $needle, $offset = 0) {} 880 function grapheme_strrpos($haystack, $needle, $offset = 0) {} 919 function grapheme_strripos($haystack, $needle, $offset = 0) {} 1024 function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {} [all …]
|
/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/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 …]
|
H A D | mbfilter.h | 208 mbfl_strpos(mbfl_string *haystack, mbfl_string *needle, ssize_t offset, int reverse); 214 mbfl_substr_count(mbfl_string *haystack, mbfl_string *needle);
|
/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/ext/mbstring/tests/ |
H A D | bug43840.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 24 $needle = base64_decode('44CC'); 29 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
|
H A D | bug43841.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 23 $needle = base64_decode('44CC'); 28 var_dump( mb_strrpos($string_mb, $needle, $i, 'UTF-8') );
|
H A D | bug45923.phpt | 8 function section($func, $haystack, $needle) 13 var_dump($func($haystack,$needle,$offset));
|
H A D | mb_stripos_basic.phpt | 74 echo "\n -- ASCII Strings, needle should be found --\n"; 75 foreach ($ascii_needles as $needle) { 76 if ($needle == '!') { 81 var_dump(mb_stripos($haystack, $needle)); 87 foreach ($greek_needles as $needle) { 88 if ($needle == '!') { 93 var_dump(mb_stripos($haystack, $needle)); 103 -- ASCII Strings, needle should be found -- 117 -- ASCII Strings, needle should not be found -- 131 -- Greek Strings, needle should be found -- [all …]
|