Home
last modified time | relevance | path

Searched refs:haystack (Results 26 – 50 of 118) sorted by relevance

12345

/php-src/ext/mbstring/tests/
H A Dbug43840.phpt49 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
57 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
61 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
63 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strripos_basic2.phpt49 foreach ($ascii_haystacks as $haystack) {
50 var_dump(mb_strripos($haystack, $needle));
51 var_dump(mb_strripos($haystack, $needle, 14));
57 foreach ($greek_haystacks as $haystack) {
58 var_dump(mb_strripos($haystack, $needle));
59 var_dump(mb_strripos($haystack, $needle, 12));
H A Dmb_substr_count_variation4.phpt2 Test mb_substr_count() function : variation - pass a $needle that overlaps in $haystack
8 * Pass mb_substr_count() a $needle that overlaps in $haystack and see whether
18 var_dump(mb_substr_count($string_ascii, 'abcabc')); //needle overlaps in haystack
/php-src/ext/standard/tests/strings/
H A Dstrripos_offset.phpt40 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
41 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
42 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
43 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrrpos_offset.phpt40 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
41 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
42 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
43 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrripos_basic1.phpt10 echo "\n-- regular string for haystack & needle --\n";
21 echo "\n-- heredoc string for haystack & needle --\n";
30 -- regular string for haystack & needle --
41 -- heredoc string for haystack & needle --
H A Dstrrchr_variation5.phpt2 …t strrchr() function : usage variations - heredoc string containing escape sequences for 'haystack'
5 /* Prototype : string strrchr(string $haystack, string $needle);
11 * escape sequences for haystack and with various needles
25 $escape_char_str //needle as haystack
H A Dsubstr_count_error.phpt43 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
44 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
45 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
46 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
H A Dstrrchr_variation7.phpt2 Test strrchr() function : usage variations - heredoc string containing blank line for 'haystack'
6 * blank-line for haystack and with various needles
21 $blank_line //needle as haystack
H A Dstrrpos_variation7.phpt2 Test strrpos() function : usage variations - empty heredoc string for 'haystack' argument
5 /* Test strrpos() function by passing empty heredoc string for haystack
27 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrrchr_variation2.phpt5 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */
8 $haystack = 'Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ';
65 $haystack //haystack as needle
68 /* loop through to get the position of the needle in haystack string */
72 var_dump( strrchr($haystack, $needle[$index]) );
H A Dstrrchr_variation3.phpt2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack'
5 /* Test strrchr() function by passing multi-line heredoc string for haystack and
20 $multi_line_str //needle as haystack
H A Dstrrpos_variation13.phpt10 $haystack = "\0Hello\0World\0";
23 var_dump( strrpos($haystack, $needles[$index]) );
24 var_dump( strrpos($haystack, $needles[$index], $index) );
H A Dstrripos_basic2.phpt10 echo "\n-- regular string for haystack & needle, with various offsets --\n";
16 echo "\n-- heredoc string for haystack & needle, with various offsets --\n";
36 -- regular string for haystack & needle, with various offsets --
42 -- heredoc string for haystack & needle, with various offsets --
H A Dstrrchr_variation6.phpt2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing quote chars for haystack
21 $quote_char_str //needle as haystack
H A Dstripos_variation13.phpt10 $haystack = "\0Hello\0World\0";
23 var_dump( stripos($haystack, $needles[$index]) );
24 var_dump( stripos($haystack, $needles[$index], $index) );
H A Dstrrchr_variation1.phpt6 /* Test strrchr() function by passing various double quoted strings for 'haystack' & 'needle' */
9 $haystack = "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ";
66 $haystack //haystack as needle
69 /* loop through to get the position of the needle in haystack string */
73 var_dump( strrchr($haystack, $needle[$index]) );
H A Dstripos_basic1.phpt11 //regular string for haystack & needle
21 //heredoc string for haystack & needle
26 //non-existing needle in haystack
/php-src/ext/standard/
H A Dstring.c1927 ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - ZSTR_LEN(needle),
1946 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
2056 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2065 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2106 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - 1;
2113 e = ZSTR_VAL(haystack) + (ZSTR_LEN(haystack) + (size_t)offset);
3206 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3239 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3253 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack
5707 p = haystack;
[all …]
/php-src/Zend/tests/
H A Dframeless_jmp_001.phpt6 function test($needle, $haystack) {
7 return in_array($needle, $haystack, true);
/php-src/ext/intl/grapheme/
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,…
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
114 intl_convert_utf8_to_utf16(&uhaystack, &uhaystack_len, haystack, haystack_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
338 p = haystack + offset; in grapheme_strrpos_ascii()
339 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
341 p = haystack; in grapheme_strrpos_ascii()
343 e = haystack + haystack_len - needle_len; in grapheme_strrpos_ascii()
345 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()
/php-src/ext/standard/tests/array/
H A Darray_search_variation2.phpt2 Test array_search() function : usage variations - different haystack values
5 /* Test array_search() with different possible haystack values */
7 echo "*** Testing array_search() with different haystack values ***\n";
47 *** Testing array_search() with different haystack values ***
H A Din_array_variation3.phpt2 Test in_array() function : usage variations - haystack as sub-array/object
5 /* Test in_array() with haystack as sub-array and object */
55 in_array(): Argument #2 ($haystack) must be of type array, in_array_check given
56 in_array(): Argument #2 ($haystack) must be of type array, in_array_check given
/php-src/ext/mbstring/
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

Completed in 47 milliseconds

12345