Lines Matching refs:subject

717 	zend_string		 *subject;			/* String to match against */  in php_do_pcre_match()  local
725 Z_PARAM_STR(subject) in php_do_pcre_match()
732 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in php_do_pcre_match()
743 php_pcre_match_impl(pce, ZSTR_VAL(subject), (int)ZSTR_LEN(subject), return_value, subpats, in php_do_pcre_match()
750 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_match_impl() argument
874 count = pcre_jit_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
878 count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
916 add_offset_pair(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
928 add_next_index_stringl(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
962 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
975 add_assoc_stringl(&result_set, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
986 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
994 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1006 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1024 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1038 add_assoc_stringl(subpats, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1049 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1057 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1070 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1099 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
1209 …reg_do_repl_func(zend_fcall_info *fci, zend_fcall_info_cache *fcc, char *subject, int *offsets, ch… in preg_do_repl_func() argument
1220 …add_assoc_stringl(&arg, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[i<<… in preg_do_repl_func()
1222 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1226 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1246 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1259 char *subject, int subject_len, in php_pcre_replace() argument
1271 result = php_pcre_replace_impl(pce, subject_str, subject, subject_len, replace_str, in php_pcre_replace()
1280 …pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, int subject_len,… in php_pcre_replace_impl() argument
1370 count = pcre_jit_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1374 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1386 piece = subject + start_offset; in php_pcre_replace_impl()
1397 match = subject + offsets[0]; in php_pcre_replace_impl()
1459 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1543 …replace_func_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, int subject_len,… in php_pcre_replace_func_impl() argument
1630 count = pcre_jit_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1634 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1646 piece = subject + start_offset; in php_pcre_replace_func_impl()
1655 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1660 eval_result = preg_do_repl_func(fci, fcc, subject, offsets, subpat_names, count, mark); in php_pcre_replace_func_impl()
1863 …ne zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, int *… in php_replace_in_subject() argument
1866 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject()
1894 …unc(zval *regex, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *subject, int limit, int *… in php_replace_in_subject_func() argument
1898 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject_func()
1943 …ue, zval *regex, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval *subject, zend_long limit_… in preg_replace_func_impl() argument
1952 if (Z_TYPE_P(subject) != IS_ARRAY) { in preg_replace_func_impl()
1953 result = php_replace_in_subject_func(regex, fci, fcc, subject, limit_val, &replace_count); in preg_replace_func_impl()
1965 array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(subject))); in preg_replace_func_impl()
1969 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { in preg_replace_func_impl()
1991 zval *regex, *replace, *subject, *zcount = NULL; in preg_replace_common() local
2001 Z_PARAM_ZVAL(subject) in preg_replace_common()
2019 if (Z_TYPE_P(subject) != IS_ARRAY) { in preg_replace_common()
2023 subject, in preg_replace_common()
2042 array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(subject))); in preg_replace_common()
2046 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { in preg_replace_common()
2088 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
2098 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
2108 ZVAL_STR(return_value, zval_get_string(subject)); in PHP_FUNCTION()
2116 replace_count = preg_replace_func_impl(return_value, regex, &fci, &fcc, subject, limit); in PHP_FUNCTION()
2128 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
2138 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
2162 ZVAL_COPY(return_value, subject); in PHP_FUNCTION()
2168 replace_count += preg_replace_func_impl(&zv, &regex, &fci, &fcc, subject, limit); in PHP_FUNCTION()
2169 if (subject != return_value) { in PHP_FUNCTION()
2170 subject = return_value; in PHP_FUNCTION()
2205 zend_string *subject; /* String to match against */ in PHP_FUNCTION() local
2213 Z_PARAM_STR(subject) in PHP_FUNCTION()
2219 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in PHP_FUNCTION()
2230 php_pcre_split_impl(pce, subject, return_value, (int)limit_val, flags); in PHP_FUNCTION()
2687 ZEND_ARG_INFO(0, subject)
2695 ZEND_ARG_INFO(0, subject)
2704 ZEND_ARG_INFO(0, subject)
2712 ZEND_ARG_INFO(0, subject)
2719 ZEND_ARG_INFO(0, subject)
2726 ZEND_ARG_INFO(0, subject)