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()
149 …found = (unsigned char *)php_memnstr((char *)haystack + offset, (char *)needle, needle_len, (char … in PHP_FUNCTION()
157 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) { in PHP_FUNCTION()
159 RETURN_LONG(found - haystack); in PHP_FUNCTION()
163 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, &uchar_pos, 0 … in PHP_FUNCTION()
178 unsigned char *haystack, *needle, *haystack_dup, *needle_dup; in PHP_FUNCTION() local
186 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
214 is_ascii = ( grapheme_ascii_check(haystack, haystack_len) >= 0 ); in PHP_FUNCTION()
219 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION()
238 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, &uchar_pos, 1 … in PHP_FUNCTION()
253 unsigned char *haystack, *needle; in PHP_FUNCTION() local
260 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
287 is_ascii = grapheme_ascii_check(haystack, haystack_len) >= 0; in PHP_FUNCTION()
291 ret_pos = grapheme_strrpos_ascii(haystack, haystack_len, needle, needle_len, offset); in PHP_FUNCTION()
307 …ret_pos = grapheme_strrpos_utf16(haystack, haystack_len, needle, needle_len, offset, 0 /* f_ignore… in PHP_FUNCTION()
323 unsigned char *haystack, *needle; in PHP_FUNCTION() local
330 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (c… in PHP_FUNCTION()
357 is_ascii = grapheme_ascii_check(haystack, haystack_len) >= 0; in PHP_FUNCTION()
364 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION()
385 …ret_pos = grapheme_strrpos_utf16(haystack, haystack_len, needle, needle_len, offset, 1 /* f_ignore… in PHP_FUNCTION()
595 unsigned char *haystack, *needle, *found; in strstr_common_handler() local
600 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|b", (char **)&haystack, &haystack_len, (c… in strstr_common_handler()
621 …found = (unsigned char *)php_memnstr((char *)haystack, (char *)needle, needle_len, (char *)haystac… in strstr_common_handler()
629 if ( grapheme_ascii_check(haystack, haystack_len) >= 0 ) { in strstr_common_handler()
630 size_t found_offset = found - haystack; in strstr_common_handler()
633 RETURN_STRINGL(((char *)haystack) , found_offset, 1); in strstr_common_handler()
642 …ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, 0, &uchar_pos, f_ignor… in strstr_common_handler()
651 U8_FWD_N(haystack, ret_pos, haystack_len, uchar_pos); in strstr_common_handler()
654 RETURN_STRINGL(((char *)haystack), ret_pos, 1); in strstr_common_handler()
657 RETURN_STRINGL(((char *)haystack) + ret_pos, haystack_len - ret_pos, 1); in strstr_common_handler()