Lines Matching refs:subject
675 zend_string *subject; /* String to match against */ in php_do_pcre_match() local
683 Z_PARAM_STR(subject) in php_do_pcre_match()
690 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in php_do_pcre_match()
701 php_pcre_match_impl(pce, ZSTR_VAL(subject), (int)ZSTR_LEN(subject), return_value, subpats, in php_do_pcre_match()
708 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_match_impl() argument
816 count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
835 …if ((offsets[1] - offsets[0] < 0) || pcre_get_substring_list(subject, offsets, count, &stringlist)… in php_pcre_match_impl()
968 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
1087 static zend_string *preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_na… in preg_do_repl_func() argument
1098 …add_assoc_stringl(&args[0], subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets… in preg_do_repl_func()
1100 add_next_index_stringl(&args[0], &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1104 add_next_index_stringl(&args[0], &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1119 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1132 char *subject, int subject_len, in php_pcre_replace() argument
1144 result = php_pcre_replace_impl(pce, subject_str, subject, subject_len, replace_val, in php_pcre_replace()
1153 …pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, int subject_len,… in php_pcre_replace_impl() argument
1242 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1254 piece = subject + start_offset; in php_pcre_replace_impl()
1263 match = subject + offsets[0]; in php_pcre_replace_impl()
1319 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1333 eval_result = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, mark); in php_pcre_replace_impl()
1427 static zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, in… in php_replace_in_subject() argument
1434 zend_string *subject_str = zval_get_string(subject); in php_replace_in_subject()
1519 static int preg_replace_impl(zval *return_value, zval *regex, zval *replace, zval *subject, zend_lo… in preg_replace_impl() argument
1536 if (Z_TYPE_P(subject) == IS_ARRAY) { in preg_replace_impl()
1537 array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(subject))); in preg_replace_impl()
1541 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(subject), num_key, string_key, subject_entry) { in preg_replace_impl()
1562 …if ((result = php_replace_in_subject(regex, replace, subject, limit_val, is_callable_replace, &rep… in preg_replace_impl()
1582 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1590 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
1601 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 0); in PHP_FUNCTION()
1613 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1622 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
1631 ZVAL_COPY(return_value, subject); in PHP_FUNCTION()
1636 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1648 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
1657 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
1677 ZVAL_COPY(return_value, subject); in PHP_FUNCTION()
1683 replace_count += preg_replace_impl(&zv, ®ex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1710 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1718 Z_PARAM_ZVAL(subject) in PHP_FUNCTION()
1729 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 1); in PHP_FUNCTION()
1742 zend_string *subject; /* String to match against */ in PHP_FUNCTION() local
1750 Z_PARAM_STR(subject) in PHP_FUNCTION()
1756 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in PHP_FUNCTION()
1767 …php_pcre_split_impl(pce, ZSTR_VAL(subject), (int)ZSTR_LEN(subject), return_value, (int)limit_val, … in PHP_FUNCTION()
1774 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_split_impl() argument
1825 last_match = subject; in php_pcre_split_impl()
1830 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
1845 if (!no_empty || &subject[offsets[0]] != last_match) { in php_pcre_split_impl()
1849 …add_offset_pair(return_value, last_match, (int)(&subject[offsets[0]]-last_match), next_offset, NUL… in php_pcre_split_impl()
1852 ZVAL_STRINGL(&tmp, last_match, &subject[offsets[0]]-last_match); in php_pcre_split_impl()
1861 last_match = &subject[offsets[1]]; in php_pcre_split_impl()
1871 add_offset_pair(return_value, &subject[offsets[i<<1]], match_len, offsets[i<<1], NULL); in php_pcre_split_impl()
1873 ZVAL_STRINGL(&tmp, &subject[offsets[i<<1]], match_len); in php_pcre_split_impl()
1886 offsets[1] = start_offset + calculate_unit_length(pce, subject + start_offset); in php_pcre_split_impl()
1906 …start_offset = (int)(last_match - subject); /* the offset might have been incremented, but without… in php_pcre_split_impl()
1912 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()
1915 ZVAL_STRINGL(&tmp, last_match, subject + subject_len - last_match); in php_pcre_split_impl()
2147 ZEND_ARG_INFO(0, subject)
2155 ZEND_ARG_INFO(0, subject)
2164 ZEND_ARG_INFO(0, subject)
2172 ZEND_ARG_INFO(0, subject)
2179 ZEND_ARG_INFO(0, subject)
2186 ZEND_ARG_INFO(0, subject)