Lines Matching refs:haystack_dup
1823 char *haystack_dup; local
1831 haystack_dup = estrndup(ZSTR_VAL(haystack), ZSTR_LEN(haystack));
1837 efree(haystack_dup);
1841 found = php_stristr(haystack_dup, orig_needle, ZSTR_LEN(haystack), Z_STRLEN_P(needle));
1845 efree(haystack_dup);
1850 found = php_stristr(haystack_dup, needle_char, ZSTR_LEN(haystack), 1);
1854 found_offset = found - haystack_dup;
1864 efree(haystack_dup);
1979 zend_string *needle_dup = NULL, *haystack_dup; local
2002 haystack_dup = php_string_tolower(haystack);
2004 found = (char*)php_memnstr(ZSTR_VAL(haystack_dup) + offset,
2005 ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack));
2010 haystack_dup = php_string_tolower(haystack);
2013 found = (char*)php_memnstr(ZSTR_VAL(haystack_dup) + offset,
2016 ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack));
2021 RETVAL_LONG(found - ZSTR_VAL(haystack_dup));
2026 zend_string_release(haystack_dup);
2106 zend_string *needle_dup, *haystack_dup, *ord_needle = NULL; local
2164 haystack_dup = php_string_tolower(haystack);
2167 zend_string_release(haystack_dup);
2172 p = ZSTR_VAL(haystack_dup) + offset;
2173 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2176 zend_string_release(haystack_dup);
2181 p = ZSTR_VAL(haystack_dup);
2183 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2185 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack) + offset + ZSTR_LEN(needle);
2191 RETVAL_LONG(found - ZSTR_VAL(haystack_dup));
2193 zend_string_release(haystack_dup);
2197 zend_string_release(haystack_dup);