Lines Matching refs:subject_str

1140 		zend_string *subject_str, PCRE2_SIZE start_offset) {  in is_known_valid_utf8()  argument
1141 if (!ZSTR_IS_VALID_UTF8(subject_str)) { in is_known_valid_utf8()
1146 if (start_offset == ZSTR_LEN(subject_str)) { in is_known_valid_utf8()
1152 return (ZSTR_VAL(subject_str)[start_offset] & 0xc0) != 0x80; in is_known_valid_utf8()
1156 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value, in php_pcre_match_impl() argument
1177 char *subject = ZSTR_VAL(subject_str); in php_pcre_match_impl()
1178 size_t subject_len = ZSTR_LEN(subject_str); in php_pcre_match_impl()
1265 (pce->compile_options & PCRE2_UTF) && !is_known_valid_utf8(subject_str, orig_start_offset) in php_pcre_match_impl()
1460 && !ZSTR_IS_INTERNED(subject_str) && orig_start_offset == 0) { in php_pcre_match_impl()
1461 GC_ADD_FLAGS(subject_str, IS_STR_VALID_UTF8); in php_pcre_match_impl()
1584 zend_string *subject_str, in php_pcre_replace() argument
1602 result = php_pcre_replace_impl(pce, subject_str, subject, subject_len, replace_str, in php_pcre_replace()
1611 PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, const ch… in php_pcre_replace_impl() argument
1807 if (!result && subject_str) { in php_pcre_replace_impl()
1808 result = zend_string_copy(subject_str); in php_pcre_replace_impl()
1852 static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_string *subject_str, con… in php_pcre_replace_func_impl() argument
2002 if (!result && subject_str) { in php_pcre_replace_func_impl()
2003 result = zend_string_copy(subject_str); in php_pcre_replace_func_impl()
2048 zend_string *subject_str, in php_pcre_replace_func() argument
2061 pce, subject_str, ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), fci, fcc, in php_pcre_replace_func()
2072 zend_string *subject_str, size_t limit, size_t *replace_count) in php_pcre_replace_array() argument
2077 zend_string_addref(subject_str); in php_pcre_replace_array()
2107 result = php_pcre_replace(regex_str, subject_str, ZSTR_VAL(subject_str), in php_pcre_replace_array()
2108 ZSTR_LEN(subject_str), replace_entry_str, limit, replace_count); in php_pcre_replace_array()
2111 zend_string_release_ex(subject_str, 0); in php_pcre_replace_array()
2112 subject_str = result; in php_pcre_replace_array()
2129 result = php_pcre_replace(regex_str, subject_str, ZSTR_VAL(subject_str), in php_pcre_replace_array()
2130 ZSTR_LEN(subject_str), replace_str, limit, replace_count); in php_pcre_replace_array()
2132 zend_string_release_ex(subject_str, 0); in php_pcre_replace_array()
2133 subject_str = result; in php_pcre_replace_array()
2141 return subject_str; in php_pcre_replace_array()
2212 zend_string *subject_str, HashTable *subject_ht, zend_long limit_val, zend_long flags) in preg_replace_func_impl() argument
2217 if (subject_str) { in preg_replace_func_impl()
2219 regex_str, regex_ht, fci, fcc, subject_str, limit_val, &replace_count, flags); in preg_replace_func_impl()
2265 HashTable *subject_ht, zend_string *subject_str, in _preg_replace_common() argument
2280 if (subject_str) { in _preg_replace_common()
2283 subject_str, limit, &replace_count); in _preg_replace_common()
2339 zend_string *regex_str, *replace_str, *subject_str; in preg_replace_common() local
2348 Z_PARAM_ARRAY_HT_OR_STR(subject_ht, subject_str) in preg_replace_common()
2358 subject_ht, subject_str, in preg_replace_common()
2372 zend_string *regex_str, *replace_str, *subject_str; variable
2378 Z_FLF_PARAM_ARRAY_HT_OR_STR(3, subject_ht, subject_str, subject_tmp);
2384 subject_ht, subject_str,
2399 zend_string *subject_str; in PHP_FUNCTION() local
2410 Z_PARAM_ARRAY_HT_OR_STR(subject_ht, subject_str) in PHP_FUNCTION()
2419 subject_str, subject_ht, limit, flags); in PHP_FUNCTION()
2431 zend_string *subject_str, *str_idx_regex; in PHP_FUNCTION() local
2440 Z_PARAM_ARRAY_HT_OR_STR(subject_ht, subject_str) in PHP_FUNCTION()
2454 GC_TRY_ADDREF(subject_str); in PHP_FUNCTION()
2470 subject_str, subject_ht, limit, flags); in PHP_FUNCTION()
2478 ZEND_ASSERT(subject_str); in PHP_FUNCTION()
2479 zend_string_release(subject_str); in PHP_FUNCTION()
2480 subject_str = Z_STR(zv); in PHP_FUNCTION()
2505 RETURN_STR(subject_str); in PHP_FUNCTION()
2512 zend_string_release(subject_str); in PHP_FUNCTION()
2554 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value, in php_pcre_split_impl() argument
2567 char *subject = ZSTR_VAL(subject_str); in php_pcre_split_impl()
2611 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2615 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2678 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2687 if (start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2712 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2716 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2731 if (!no_empty || start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2734 add_offset_pair(return_value_ht, subject, start_offset, ZSTR_LEN(subject_str), NULL, 0); in php_pcre_split_impl()
2738 ZVAL_STR_COPY(&tmp, subject_str); in php_pcre_split_impl()
2740 populate_match_value_str(&tmp, subject, start_offset, ZSTR_LEN(subject_str)); in php_pcre_split_impl()
2948 zend_string *subject_str = zval_get_tmp_string(entry, &tmp_subject_str); in php_pcre_grep_impl() local
2953 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()
2957 count = pcre2_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()