Lines Matching refs:subject

562 	char			 *subject;			/* String to match against */  in php_do_pcre_match()  local
571 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
581 php_pcre_match_impl(pce, subject, subject_len, return_value, subpats, in php_do_pcre_match()
588 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_match_impl() argument
694 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
713 …if ((offsets[1] - offsets[0] < 0) || pcre_get_substring_list(subject, offsets, count, &stringlist)… in php_pcre_match_impl()
808 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
915 static int preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int … in preg_do_repl_func() argument
927 …add_assoc_stringl(subpats, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[… in preg_do_repl_func()
929 add_next_index_stringl(subpats, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1], 1); in preg_do_repl_func()
946 *result = estrndup(&subject[offsets[0]], result_len); in preg_do_repl_func()
957 static int preg_do_eval(char *eval_str, int eval_str_len, char *subject, in preg_do_eval() argument
993 match = subject + offsets[backref<<1]; in preg_do_eval()
1046 char *subject, int subject_len, in php_pcre_replace() argument
1058 result = php_pcre_replace_impl(pce, subject, subject_len, replace_val, in php_pcre_replace()
1067 PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *rep… in php_pcre_replace_impl() argument
1160 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1172 piece = subject + start_offset; in php_pcre_replace_impl()
1179 match = subject + offsets[0]; in php_pcre_replace_impl()
1185 eval_result_len = preg_do_eval(replace, replace_len, subject, in php_pcre_replace_impl()
1190 …eval_result_len = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, mark, &eva… in php_pcre_replace_impl()
1247 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1323 static char *php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, in… in php_replace_in_subject() argument
1334 convert_to_string_ex(subject); in php_replace_in_subject()
1341 subject_value = estrndup(Z_STRVAL_PP(subject), Z_STRLEN_PP(subject)); in php_replace_in_subject()
1342 subject_len = Z_STRLEN_PP(subject); in php_replace_in_subject()
1397 Z_STRVAL_PP(subject), in php_replace_in_subject()
1398 Z_STRLEN_PP(subject), in php_replace_in_subject()
1415 **subject, in preg_replace_impl() local
1429 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|lZ", &regex, &replace, &subject, &limit,… in preg_replace_impl()
1446 MAKE_COPY_ZVAL(subject, return_value); in preg_replace_impl()
1453 SEPARATE_ZVAL(subject); in preg_replace_impl()
1463 if (Z_TYPE_PP(subject) == IS_ARRAY) { in preg_replace_impl()
1465 zend_hash_internal_pointer_reset(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1469 while (zend_hash_get_current_data(Z_ARRVAL_PP(subject), (void **)&subject_entry) == SUCCESS) { in preg_replace_impl()
1475 …switch(zend_hash_get_current_key_ex(Z_ARRVAL_PP(subject), &string_key, &string_key_len, &num_key, … in preg_replace_impl()
1490 zend_hash_move_forward(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1494 …if ((result = php_replace_in_subject(*regex, *replace, subject, &result_len, limit_val, is_callabl… in preg_replace_impl()
1539 char *subject; /* String to match against */ in PHP_FUNCTION() local
1548 &subject, &subject_len, &limit_val, &flags) == FAILURE) { in PHP_FUNCTION()
1558 php_pcre_split_impl(pce, subject, subject_len, return_value, limit_val, flags TSRMLS_CC); in PHP_FUNCTION()
1565 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_split_impl() argument
1618 last_match = subject; in php_pcre_split_impl()
1623 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
1638 if (!no_empty || &subject[offsets[0]] != last_match) { in php_pcre_split_impl()
1642 add_offset_pair(return_value, last_match, &subject[offsets[0]]-last_match, next_offset, NULL); in php_pcre_split_impl()
1646 &subject[offsets[0]]-last_match, 1); in php_pcre_split_impl()
1654 last_match = &subject[offsets[1]]; in php_pcre_split_impl()
1664 add_offset_pair(return_value, &subject[offsets[i<<1]], match_len, offsets[i<<1], NULL); in php_pcre_split_impl()
1667 &subject[offsets[i<<1]], in php_pcre_split_impl()
1687 count = pcre_exec(re_bump, extra_bump, subject, in php_pcre_split_impl()
1716 …start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1722 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()
1725 add_next_index_stringl(return_value, last_match, subject + subject_len - last_match, 1); in php_pcre_split_impl()
1893 zval subject = **entry; in php_pcre_grep_impl() local
1896 zval_copy_ctor(&subject); in php_pcre_grep_impl()
1897 convert_to_string(&subject); in php_pcre_grep_impl()
1901 count = pcre_exec(pce->re, extra, Z_STRVAL(subject), in php_pcre_grep_impl()
1902 Z_STRLEN(subject), 0, in php_pcre_grep_impl()
1935 zval_dtor(&subject); in php_pcre_grep_impl()
1963 ZEND_ARG_INFO(0, subject)
1971 ZEND_ARG_INFO(0, subject)
1980 ZEND_ARG_INFO(0, subject)
1988 ZEND_ARG_INFO(0, subject)
1995 ZEND_ARG_INFO(0, subject)