Home
last modified time | relevance | path

Searched refs:needle (Results 51 – 75 of 107) sorted by relevance

12345

/php-src/ext/mbstring/tests/
H A Dmb_strrpos_error2.phpt14 $needle = '123';
19 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
H A Dmb_strstr_error2.phpt12 $needle = 'world';
17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
H A Dmb_substr_count_error2.phpt14 $needle = 'Hello';
20 var_dump(mb_substr_count($haystack, $needle, $encoding));
H A Dbug43841.phpt14 $needle = "。";
20 var_dump( mb_strrpos($string_mb, $needle, $i, 'UTF-8') );
H A Dbug43840.phpt16 $needle = base64_decode('44CC');
22 var_dump( mb_strpos($string_mb, $needle, $i, 'UTF-8') );
H A Dmb_stristr_empty_needle.phpt2 Test mb_stristr() function : with empty needle
H A Dmb_strrchr_empty_needle.phpt2 Test mb_strrchr() function : with empty needle
H A Dmb_strstr_empty_needle.phpt2 Test mb_strstr() function : with empty needle
/php-src/ext/iconv/tests/
H A Diconv_strpos_error2.phpt13 $needle = 'world';
17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
H A Diconv_strrpos_error2.phpt14 $needle = '123';
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/ext/iconv/
H A Diconv.stub.php31 function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null):… argument
33 function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {} argument
H A Diconv_arginfo.h18 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
25 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
/php-src/ext/standard/tests/strings/
H A Dstrrchr_variation12.phpt19 //needle as null string
21 //needle as empty string
H A Dstrrpos_variation13.phpt2 Test strrpos() function : usage variations - checking bianry safe with 'needle' argument
5 /* Test strrpos() function with null terminated strings for 'needle' argument
H A Dstripos_variation13.phpt2 Test stripos() function : usage variations - null terminated strings for 'needle' argument
5 /* Test stripos() function with null terminated strings for 'needle' argument
H A Dsubstr_count_basic.phpt37 substr_count(): Argument #2 ($needle) cannot be empty
38 substr_count(): Argument #2 ($needle) cannot be empty
H A Dstrrpos_basic2.phpt11 //regular string for haystack & needle, with various offsets
17 //heredoc string for haystack & needle, with various offsets
H A Dstrrpos_variation14.phpt2 Test strrpos() function : usage variations - negative offset with empty needle
H A Dstrripos_variation6.phpt2 Test strrpos() function : usage variations - negative offset with empty needle
H A Dstripos_basic2.phpt11 //regular string for haystack & needle, with various offsets
20 //heredoc string for haystack & needle, with various offsets
/php-src/Zend/
H A Dzend_operators.h172 return (const char *)memchr(p, *needle, (end-p)); in zend_memnstr()
184 const char ne = needle[needle_len-1]; in zend_memnstr()
188 if ((p = (const char *)memchr(p, *needle, (end-p+1)))) { in zend_memnstr()
189 if (ne == p[needle_len-1] && !memcmp(needle+1, p+1, needle_len-2)) { in zend_memnstr()
200 return zend_memnstr_ex(haystack, needle, needle_len, end); in zend_memnstr()
248 const char ne = needle[needle_len-1]; in zend_memnrstr()
252 p = (const char *)zend_memrchr(haystack, *needle, (p - haystack) + 1); in zend_memnrstr()
263 return zend_memnrstr_ex(haystack, needle, needle_len, end); in zend_memnrstr()
943 const char first_lower = zend_tolower_ascii(*needle); in zend_memnistr()
944 const char first_upper = zend_toupper_ascii(*needle); in zend_memnistr()
[all …]
/php-src/ext/standard/
H A Dstring.c1770 Z_PARAM_STR(needle)
1813 Z_PARAM_STR(needle)
1861 Z_PARAM_STR(needle)
1890 Z_PARAM_STR(needle)
1919 Z_PARAM_STR(needle)
1928 ZSTR_VAL(needle), ZSTR_LEN(needle)) == 0);
1945 ZSTR_VAL(needle), ZSTR_LEN(needle),
1962 Z_PARAM_STR(needle)
2012 Z_PARAM_STR(needle)
2038 zend_string *needle; local
[all …]
/php-src/ext/intl/grapheme/
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
118 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_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
352 if (*e == *needle) { in grapheme_strrpos_ascii()
361 if (memcmp(e, needle, needle_len) == 0) { in grapheme_strrpos_ascii()
/php-src/ext/opcache/tests/opt/
H A Dsccp_exception3.phpt11 Fatal error: Uncaught TypeError: str_contains(): Argument #2 ($needle) must be of type string, int …

Completed in 38 milliseconds

12345