Home
last modified time | relevance | path

Searched refs:needle_dup (Results 1 – 2 of 2) sorted by relevance

/php-src/ext/intl/grapheme/
H A Dgrapheme_string.c159 char *haystack_dup, *needle_dup; in PHP_FUNCTION() local
161 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
162 zend_str_tolower(needle_dup, needle_len); in PHP_FUNCTION()
166 found = php_memnstr(haystack_dup + noffset, needle_dup, needle_len, haystack_dup + haystack_len); in PHP_FUNCTION()
169 efree(needle_dup); in PHP_FUNCTION()
275 char *needle_dup, *haystack_dup; in PHP_FUNCTION() local
277 needle_dup = estrndup(needle, needle_len); in PHP_FUNCTION()
278 zend_str_tolower(needle_dup, needle_len); in PHP_FUNCTION()
282 ret_pos = grapheme_strrpos_ascii(haystack_dup, haystack_len, needle_dup, needle_len, offset); in PHP_FUNCTION()
285 efree(needle_dup); in PHP_FUNCTION()
/php-src/ext/standard/
H A Dstring.c2087 zend_string *needle_dup, *haystack_dup; local
2149 needle_dup = zend_string_tolower(needle);
2150 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2152 zend_string_release_ex(needle_dup, 0);
2155 zend_string_release_ex(needle_dup, 0);

Completed in 22 milliseconds