Lines Matching refs:needle

84 	char *haystack, *needle;  in PHP_FUNCTION()  local
94 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
114 found = php_memnstr(haystack + noffset, needle, needle_len, haystack + haystack_len); in PHP_FUNCTION()
124 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
137 char *haystack, *needle; in PHP_FUNCTION() local
147 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
167 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
182 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
188 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
202 char *haystack, *needle; in PHP_FUNCTION() local
211 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
230 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
238 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
245 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
260 char *haystack, *needle; in PHP_FUNCTION() local
269 Z_PARAM_STRING(needle, needle_len) in PHP_FUNCTION()
289 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
305 if ( grapheme_ascii_check((unsigned char *)needle, needle_len) >= 0 ) { in PHP_FUNCTION()
312 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
540 char *haystack, *needle; in strstr_common_handler() local
548 Z_PARAM_STRING(needle, needle_len) in strstr_common_handler()
556 found = php_memnstr(haystack, needle, needle_len, haystack + haystack_len); in strstr_common_handler()
577 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()