Lines Matching refs:needle_len

112 	int haystack_len, needle_len;  in PHP_FUNCTION()  local
118 …RMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FA… in PHP_FUNCTION()
139 if (needle_len == 0) { in PHP_FUNCTION()
150 …found = (unsigned char *)php_memnstr((char *)haystack + noffset, (char *)needle, needle_len, (char… in PHP_FUNCTION()
164 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
180 int haystack_len, needle_len; in PHP_FUNCTION() local
187 …RMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FA… in PHP_FUNCTION()
207 if (needle_len == 0) { in PHP_FUNCTION()
219 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len); in PHP_FUNCTION()
220 php_strtolower((char *)needle_dup, needle_len); in PHP_FUNCTION()
224 …char*) php_memnstr((char *)haystack_dup + noffset, (char *)needle_dup, needle_len, (char *)haystac… in PHP_FUNCTION()
234 if ( grapheme_ascii_check(needle, needle_len) >= 0 ) { in PHP_FUNCTION()
240 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
256 int haystack_len, needle_len; in PHP_FUNCTION() local
262 …RMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FA… in PHP_FUNCTION()
282 if (needle_len == 0) { in PHP_FUNCTION()
293 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
302 if ( grapheme_ascii_check(needle, needle_len) >= 0 ) { in PHP_FUNCTION()
309 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
326 int haystack_len, needle_len; in PHP_FUNCTION() local
332 …RMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FA… in PHP_FUNCTION()
352 if (needle_len == 0) { in PHP_FUNCTION()
364 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len); in PHP_FUNCTION()
365 php_strtolower((char *)needle_dup, needle_len); in PHP_FUNCTION()
369 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
380 if ( grapheme_ascii_check(needle, needle_len) >= 0 ) { in PHP_FUNCTION()
387 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
618 int haystack_len, needle_len; in strstr_common_handler() local
622 …RMLS_CC, "ss|b", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &part) == FAILU… in strstr_common_handler()
630 if (needle_len == 0) { in strstr_common_handler()
643 …found = (unsigned char *)php_memnstr((char *)haystack, (char *)needle, needle_len, (char *)haystac… in strstr_common_handler()
664 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()