Lines Matching refs:haystack
111 unsigned char *haystack, *needle; in PHP_FUNCTION() local
118 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
150 …ound = (unsigned char *)php_memnstr((char *)haystack + noffset, (char *)needle, needle_len, (char … in PHP_FUNCTION()
158 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) { in PHP_FUNCTION()
160 RETURN_LONG(found - haystack); in PHP_FUNCTION()
164 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIg… in PHP_FUNCTION()
179 unsigned char *haystack, *needle, *haystack_dup, *needle_dup; in PHP_FUNCTION() local
187 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
215 is_ascii = ( grapheme_ascii_check(haystack, haystack_len) >= 0 ); in PHP_FUNCTION()
221 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION()
240 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* fIg… in PHP_FUNCTION()
255 unsigned char *haystack, *needle; in PHP_FUNCTION() local
262 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
289 is_ascii = grapheme_ascii_check(haystack, haystack_len) >= 0; in PHP_FUNCTION()
293 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
309 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* f_i… in PHP_FUNCTION()
325 unsigned char *haystack, *needle; in PHP_FUNCTION() local
332 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
359 is_ascii = grapheme_ascii_check(haystack, haystack_len) >= 0; in PHP_FUNCTION()
366 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION()
387 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 1 /* f_… in PHP_FUNCTION()
617 unsigned char *haystack, *needle, *found; in strstr_common_handler() local
622 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", (char **)&haystack, &haystack_len, (c… in strstr_common_handler()
643 …found = (unsigned char *)php_memnstr((char *)haystack, (char *)needle, needle_len, (char *)haystac… in strstr_common_handler()
651 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) { in strstr_common_handler()
652 size_t found_offset = found - haystack; in strstr_common_handler()
655 RETURN_STRINGL(((char *)haystack) , found_offset, 1); 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()
673 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
676 RETURN_STRINGL(((char *)haystack), ret_pos, 1); in strstr_common_handler()
679 RETURN_STRINGL(((char *)haystack) + ret_pos, haystack_len - ret_pos, 1); in strstr_common_handler()