Lines Matching refs:subject_str

1544 							  zend_string *subject_str,  in php_pcre_replace()  argument
1557 result = php_pcre_replace_impl(pce, subject_str, subject, subject_len, replace_str, in php_pcre_replace()
1566 PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *su… in php_pcre_replace_impl() argument
1761 if (!result && subject_str) { in php_pcre_replace_impl()
1762 result = zend_string_copy(subject_str); in php_pcre_replace_impl()
1808 static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_string *subject_str, cha… in php_pcre_replace_func_impl() argument
1971 if (!result && subject_str) { in php_pcre_replace_func_impl()
1972 result = zend_string_copy(subject_str); in php_pcre_replace_func_impl()
2024 zend_string *subject_str, in php_pcre_replace_func() argument
2036 …result = php_pcre_replace_func_impl(pce, subject_str, ZSTR_VAL(subject_str), ZSTR_LEN(subject_str)… in php_pcre_replace_func()
2046 … *php_pcre_replace_array(HashTable *regex, zval *replace, zend_string *subject_str, size_t limit, … in php_pcre_replace_array() argument
2081 subject_str, in php_pcre_replace_array()
2082 ZSTR_VAL(subject_str), in php_pcre_replace_array()
2083 ZSTR_LEN(subject_str), in php_pcre_replace_array()
2089 zend_string_release_ex(subject_str, 0); in php_pcre_replace_array()
2090 subject_str = result; in php_pcre_replace_array()
2108 subject_str, in php_pcre_replace_array()
2109 ZSTR_VAL(subject_str), in php_pcre_replace_array()
2110 ZSTR_LEN(subject_str), in php_pcre_replace_array()
2115 zend_string_release_ex(subject_str, 0); in php_pcre_replace_array()
2116 subject_str = result; in php_pcre_replace_array()
2124 return subject_str; in php_pcre_replace_array()
2133 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject() local
2137 subject_str, in php_replace_in_subject()
2138 ZSTR_VAL(subject_str), in php_replace_in_subject()
2139 ZSTR_LEN(subject_str), in php_replace_in_subject()
2143 zend_string_release_ex(subject_str, 0); in php_replace_in_subject()
2147 subject_str, in php_replace_in_subject()
2160 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject_func() local
2164 subject_str, in php_replace_in_subject_func()
2168 zend_string_release_ex(subject_str, 0); in php_replace_in_subject_func()
2184 subject_str, in php_replace_in_subject_func()
2189 zend_string_release_ex(subject_str, 0); in php_replace_in_subject_func()
2190 subject_str = result; in php_replace_in_subject_func()
2196 return subject_str; in php_replace_in_subject_func()
2492 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value, in php_pcre_split_impl() argument
2521 last_match = ZSTR_VAL(subject_str); in php_pcre_split_impl()
2548 …count = pcre2_jit_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), start_o… in php_pcre_split_impl()
2552 …count = pcre2_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), start_offse… in php_pcre_split_impl()
2572 if (!no_empty || &ZSTR_VAL(subject_str)[offsets[0]] != last_match) { in php_pcre_split_impl()
2576 …add_offset_pair(return_value, last_match, (&ZSTR_VAL(subject_str)[offsets[0]]-last_match), next_of… in php_pcre_split_impl()
2579 ZVAL_STRINGL(&tmp, last_match, &ZSTR_VAL(subject_str)[offsets[0]]-last_match); in php_pcre_split_impl()
2588 last_match = &ZSTR_VAL(subject_str)[offsets[1]]; in php_pcre_split_impl()
2598 …add_offset_pair(return_value, &ZSTR_VAL(subject_str)[offsets[i<<1]], match_len, offsets[i<<1], NUL… in php_pcre_split_impl()
2600 ZVAL_STRINGL(&tmp, &ZSTR_VAL(subject_str)[offsets[i<<1]], match_len); in php_pcre_split_impl()
2615 …count = pcre2_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), start_offse… in php_pcre_split_impl()
2624 if (start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2625 start_offset += calculate_unit_length(pce, ZSTR_VAL(subject_str) + start_offset); in php_pcre_split_impl()
2649 …count = pcre2_jit_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), start_o… in php_pcre_split_impl()
2653 …count = pcre2_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), start_offse… in php_pcre_split_impl()
2666 …start_offset = (last_match - ZSTR_VAL(subject_str)); /* the offset might have been incremented, bu… in php_pcre_split_impl()
2668 if (!no_empty || start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2671 …add_offset_pair(return_value, &ZSTR_VAL(subject_str)[start_offset], ZSTR_LEN(subject_str) - start_… in php_pcre_split_impl()
2674 if (last_match == ZSTR_VAL(subject_str)) { in php_pcre_split_impl()
2675 ZVAL_STR_COPY(&tmp, subject_str); in php_pcre_split_impl()
2677 ZVAL_STRINGL(&tmp, last_match, ZSTR_VAL(subject_str) + ZSTR_LEN(subject_str) - last_match); in php_pcre_split_impl()
2886 zend_string *subject_str = zval_get_tmp_string(entry, &tmp_subject_str); in php_pcre_grep_impl() local
2891 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()
2895 count = pcre2_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()