Home
last modified time | relevance | path

Searched refs:haystack (Results 51 – 75 of 119) sorted by relevance

12345

/php-src/ext/standard/tests/strings/
H A Dstrrchr_variation4.phpt2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack'
5 /* Test strrchr() function by passing heredoc string containing special chars for haystack
27 $special_chars_str //needle as haystack
H A Dstrpbrk_error.phpt5 $haystack = 'This is a Simple text.';
9 strpbrk($haystack, '');
H A Dstripos_variation8.phpt2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument
10 $haystack = "aBAbaBAbaBabAbAbaBa";
22 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
26 for($offset = 0; $offset <= strlen($haystack); $offset++ ) {
27 var_dump( stripos($haystack, $needles[$index], $offset) );
H A Dstripos_variation5.phpt2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' …
5 /* Test stripos() function by passing heredoc string containing escape chars for haystack
H A Dstrripos_variation5.phpt2 Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack'…
5 /* Test strripos() function by passing heredoc string containing escape chars for haystack
H A Dstrrpos_variation5.phpt2 Test strrpos() function : usage variations - heredoc string containing escape chars for 'haystack' …
5 /* Test strrpos() function by passing heredoc string containing escape chars for haystack
/php-src/ext/standard/tests/array/
H A Din_array_variation2.phpt2 Test in_array() function : usage variations - different haystack values
5 /* Test in_array() with different possible haystack values */
7 echo "*** Testing in_array() with different haystack values ***\n";
46 *** Testing in_array() with different haystack values ***
H A Darray_search_variation3.phpt2 Test array_search() function : usage variations - haystack as sub-array/object
53 array_search(): Argument #2 ($haystack) must be of type array, array_search_check given
54 array_search(): Argument #2 ($haystack) must be of type array, array_search_check given
/php-src/ext/intl/tests/
H A Dbug61487.phpt23 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
24 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/php-src/ext/mbstring/tests/
H A Dmb_stripos_error2.phpt12 $haystack = 'Hello, world';
18 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
H A Dmb_strpos_error2.phpt12 $haystack = 'Hello, world';
18 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
H A Dmb_strripos_error2.phpt12 $haystack = 'Hello, world';
18 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
H A Dmb_stristr_error2.phpt11 $haystack = 'Hello, world';
17 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
H A Dmb_strrchr_error2.phpt11 $haystack = 'Hello, world';
17 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
H A Dmb_strrichr_error2.phpt11 $haystack = 'Hello, world';
17 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
H A Dmb_strrpos_error2.phpt13 $haystack = 'This is an English string. 0123456789.';
19 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
H A Dmb_strstr_error2.phpt11 $haystack = 'Hello, world';
17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
H A Dmb_substr_count_error2.phpt13 $haystack = 'Hello, World!';
20 var_dump(mb_substr_count($haystack, $needle, $encoding));
H A Dmb_stripos_empty_needle.phpt73 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
76 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_empty_needle.phpt72 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
75 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strripos_empty_needle.phpt73 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
76 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/php-src/ext/iconv/tests/
H A Diconv_strpos_error2.phpt12 $haystack = 'Hello, world';
17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
H A Diconv_strrpos_error2.phpt13 $haystack = 'This is an English string. 0123456789.';
18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
/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/Zend/
H A Dzend_operators.h166 const char *p = haystack; in zend_memnstr()
200 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr()
237 return (const char *)zend_memrchr(haystack, *needle, (p - haystack)); in zend_memnrstr()
240 off_p = end - haystack; in zend_memnrstr()
252 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr()
259 } while (p-- >= haystack); in zend_memnrstr()
933 ZEND_ASSERT(end >= haystack); in zend_memnistr()
936 return haystack; in zend_memnistr()
939 if (UNEXPECTED(needle_len > (size_t)(end - haystack))) { in zend_memnistr()
945 const char *p_lower = (const char *)memchr(haystack, first_lower, end - haystack); in zend_memnistr()
[all …]

Completed in 31 milliseconds

12345