Lines Matching refs:subject
983 zend_string *subject; /* String to match against */ in php_do_pcre_match() local
991 Z_PARAM_STR(subject) in php_do_pcre_match()
1004 php_pcre_match_impl(pce, ZSTR_VAL(subject), ZSTR_LEN(subject), return_value, subpats, in php_do_pcre_match()
1011 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, size_t subject_len, zval *ret… in php_pcre_match_impl() argument
1127 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset2, in php_pcre_match_impl()
1131 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset2, in php_pcre_match_impl()
1165 add_offset_pair(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
1177 add_next_index_stringl(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
1212 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1225 add_assoc_stringl(&result_set, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1236 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1244 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1256 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1275 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1289 add_assoc_stringl(subpats, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1300 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1308 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1321 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1344 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset2, in php_pcre_match_impl()
1358 size_t unit_len = calculate_unit_length(pce, subject + start_offset2); in php_pcre_match_impl()
1387 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset2, in php_pcre_match_impl()
1391 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset2, in php_pcre_match_impl()
1491 …reg_do_repl_func(zend_fcall_info *fci, zend_fcall_info_cache *fcc, char *subject, PCRE2_SIZE *offs… in preg_do_repl_func() argument
1502 …add_assoc_stringl(&arg, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[i<<… in preg_do_repl_func()
1504 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1508 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1532 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1545 char *subject, size_t subject_len, in php_pcre_replace() argument
1557 result = php_pcre_replace_impl(pce, subject_str, subject, subject_len, replace_str, in php_pcre_replace()
1566 …pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, size_t subject_l… in php_pcre_replace_impl() argument
1615 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1619 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1623 piece = subject + last_end_offset; in php_pcre_replace_impl()
1651 match = subject + offsets[0]; in php_pcre_replace_impl()
1713 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1737 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1740 piece = subject + start_offset; in php_pcre_replace_impl()
1792 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1796 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_impl()
1808 …replace_func_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, size_t subject_l… in php_pcre_replace_func_impl() argument
1873 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1877 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1881 piece = subject + last_end_offset; in php_pcre_replace_func_impl()
1907 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1912 eval_result = preg_do_repl_func(fci, fcc, subject, offsets, subpat_names, count, in php_pcre_replace_func_impl()
1947 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1950 piece = subject + start_offset; in php_pcre_replace_func_impl()
2001 count = pcre2_jit_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2005 count = pcre2_match(pce->re, (PCRE2_SPTR)subject, subject_len, start_offset, in php_pcre_replace_func_impl()
2130 …ne zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *subject, size_t limit, si… in php_replace_in_subject() argument
2133 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject()
2157 …unc(zval *regex, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *subject, size_t limit, si… in php_replace_in_subject_func() argument
2160 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject_func()
2203 …ue, zval *regex, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *subject, zend_long limit_… in preg_replace_func_impl() argument
2212 if (Z_TYPE_P(subject) != IS_ARRAY) { in preg_replace_func_impl()
2213 result = php_replace_in_subject_func(regex, fci, fcc, subject, limit_val, &replace_count); in preg_replace_func_impl()
2225 array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(subject))); in preg_replace_func_impl()
2229 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { in preg_replace_func_impl()
2251 zval *regex, *replace, *subject, *zcount = NULL; in preg_replace_common() local
2261 Z_PARAM_ZVAL(subject) in preg_replace_common()
2279 if (Z_TYPE_P(subject) != IS_ARRAY) { in preg_replace_common()
2283 subject, in preg_replace_common()
2302 array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(subject))); in preg_replace_common()
2306 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { in preg_replace_common()
2348 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
2358 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
2368 ZVAL_STR(return_value, zval_get_string(subject)); in PHP_FUNCTION()
2376 replace_count = preg_replace_func_impl(return_value, regex, &fci, &fcc, subject, limit); in PHP_FUNCTION()
2388 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
2398 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
2422 ZVAL_COPY(return_value, subject); in PHP_FUNCTION()
2428 replace_count += preg_replace_func_impl(&zv, ®ex, &fci, &fcc, subject, limit); in PHP_FUNCTION()
2429 if (subject != return_value) { in PHP_FUNCTION()
2430 subject = return_value; in PHP_FUNCTION()
2465 zend_string *subject; /* String to match against */ in PHP_FUNCTION() local
2473 Z_PARAM_STR(subject) in PHP_FUNCTION()
2485 php_pcre_split_impl(pce, subject, return_value, limit_val, flags); in PHP_FUNCTION()
2955 ZEND_ARG_INFO(0, subject)
2963 ZEND_ARG_INFO(0, subject)
2972 ZEND_ARG_INFO(0, subject)
2980 ZEND_ARG_INFO(0, subject)
2987 ZEND_ARG_INFO(0, subject)
2994 ZEND_ARG_INFO(0, subject)