Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 25 of 132) sorted by last modified time

123456

/PHP-7.4/
H A DNEWS2136 haystack). (Nikita)
/PHP-7.4/ext/libxml/
H A Dlibxml.c428 char *haystack = estrndup(Z_STRVAL_P(header), Z_STRLEN_P(header)); 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()
456 efree(haystack); in php_libxml_input_buffer_create_filename()
/PHP-7.4/ext/mbstring/
H A Dmbstring.c256 ZEND_ARG_INFO(0, haystack)
263 ZEND_ARG_INFO(0, haystack)
270 ZEND_ARG_INFO(0, haystack)
277 ZEND_ARG_INFO(0, haystack)
284 ZEND_ARG_INFO(0, haystack)
291 ZEND_ARG_INFO(0, haystack)
298 ZEND_ARG_INFO(0, haystack)
5335 haystack.len = len; in php_mb_stripos()
5337 if (!haystack.val) { in php_mb_stripos()
5379 if (haystack.val) { in php_mb_stripos()
[all …]
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch3546 + zend_string *haystack;
3551 + /* Cut the search len from haystack, equals to REG_STARTEND */
3552 + haystack = zend_string_init(ms->search.s, ms->search.s_len, 0);
3555 + php_pcre_match_impl(pce, haystack, &retval, &subpats, 0, 1, PREG_OFFSET_CAPTURE, 0);
3556 + /* Free haystack */
3557 + zend_string_release(haystack);
/PHP-7.4/Zend/
H A Dzend_operators.c3181 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t… argument
3187 if (needle_len == 0 || (end - haystack) < needle_len) {
3193 p = haystack;
3215 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_… argument
3221 if (needle_len == 0 || (end - haystack) < needle_len) {
3230 while (p >= haystack) {
3241 if (UNEXPECTED(p == haystack)) {
H A Dzend_operators.h86 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t…
148 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnstr() argument
150 const char *p = haystack; in zend_memnstr()
159 off_p = end - haystack; in zend_memnstr()
185 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr()
206 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, const char *end) in zend_memnrstr() argument
214 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr()
217 off_p = end - haystack; in zend_memnrstr()
228 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr()
235 } while (p-- >= haystack); in zend_memnrstr()
[all …]
/PHP-7.4/ext/standard/
H A Dstring.c1846 haystack_dup = estrndup(ZSTR_VAL(haystack), ZSTR_LEN(haystack));
1922 found = php_memnstr(ZSTR_VAL(haystack), needle_char, 1, ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1975 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1989 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
2116 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2124 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2189 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - 1;
3225 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3258 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3275 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack
[all …]
H A Dbasic_functions.c309 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
315 ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
2232 ZEND_ARG_INFO(0, haystack)
2238 ZEND_ARG_INFO(0, haystack)
2244 ZEND_ARG_INFO(0, haystack)
2250 ZEND_ARG_INFO(0, haystack)
2256 ZEND_ARG_INFO(0, haystack)
2262 ZEND_ARG_INFO(0, haystack)
2268 ZEND_ARG_INFO(0, haystack)
2424 ZEND_ARG_INFO(0, haystack)
[all …]
/PHP-7.4/ext/intl/grapheme/
H A Dgrapheme_util.c133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len,… in grapheme_strpos_utf16() argument
148 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_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
356 p = haystack + offset; in grapheme_strrpos_ascii()
357 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
359 p = haystack; in grapheme_strrpos_ascii()
361 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
363 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()
/PHP-7.4/main/
H A Drfc1867.c585 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) in php_ap_memstr() argument
588 char *ptr = haystack; in php_ap_memstr()
594 len = haystacklen - (ptr - (char *)haystack); in php_ap_memstr()
/PHP-7.4/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c815 mbfl_string *haystack, in mbfl_strpos() argument
825 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) { in mbfl_strpos()
837 if (haystack->encoding->no_encoding != mbfl_no_encoding_utf8) { in mbfl_strpos()
839 haystack_u8 = mbfl_convert_encoding(haystack, &_haystack_u8, &mbfl_encoding_utf8); in mbfl_strpos()
845 haystack_u8 = haystack; in mbfl_strpos()
1025 mbfl_string *haystack, in mbfl_substr_count() argument
1034 if (haystack == NULL || needle == NULL) { in mbfl_substr_count()
1059 haystack->encoding, in mbfl_substr_count()
1073 p = haystack->val; in mbfl_substr_count()
1074 n = haystack->len; in mbfl_substr_count()
/PHP-7.4/ext/iconv/
H A Diconv.c74 ZEND_ARG_INFO(0, haystack)
81 ZEND_ARG_INFO(0, haystack)
/PHP-7.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c2160 zend_string *haystack; in magiccheck() local
2166 haystack = zend_string_init(ms->search.s, ms->search.s_len, 0); in magiccheck()
2169 php_pcre_match_impl(pce, haystack, &retval, &subpats, 0, 1, PREG_OFFSET_CAPTURE, 0); in magiccheck()
2171 zend_string_release(haystack); in magiccheck()
/PHP-7.4/ext/standard/tests/strings/
H A Dstrrchr_variation10.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
11 * and expected type for haystack
H A Dstrrchr_variation11.phpt2 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 Dstrrchr_variation12.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
H A Dstrripos_basic2.phpt5 /* 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 Dstrripos_offset.phpt36 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
39 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
44 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
47 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
H A Dstrripos_variation1.phpt2 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 */
13 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
62 $haystack //haystack as needle
65 /* loop through to get the position of the needle in haystack string */
69 var_dump( strripos($haystack, $needle) );
70 var_dump( strripos($haystack, $needle, 1) );
71 var_dump( strripos($haystack, $needle, 20) );
[all …]
H A Dstrripos_variation2.phpt2 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'
10 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
13 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
63 $haystack //haystack as needle
66 /* loop through to get the position of the needle in haystack string */
70 var_dump( strripos($haystack, $needle) );
71 var_dump( strripos($haystack, $needle, 1) );
72 var_dump( strripos($haystack, $needle, 20) );
[all …]
H A Dstrripos_variation3.phpt2 Test strripos() function : usage variations - multi line heredoc string for 'haystack' argument
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 multi-line heredoc string for haystack and
H A Dstrripos_variation4.phpt2 Test strripos() function : usage variations - heredoc string containing special chars for 'haystack
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 heredoc string containing special chars for haystack
H A Dstrrpos_offset.phpt32 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
35 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
40 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
43 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
H A Dstrrpos_variation10.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
11 * an expected type of input for 'haystack' argument
30 $haystack = "string 0 1 2 -2 10.5 -10.5 10.5e10 10.6E-10 .5 array true false object \"\" null Resou…
86 var_dump( strrpos($haystack, $needles[$index]) );
H A Dstrrpos_variation11.phpt2 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";
83 $haystack = $values[$index];
92 *** Testing strrpos() function with unexpected values for haystack and needle ***

Completed in 121 milliseconds

123456