Lines Matching refs:subject

535 	char			 *subject;			/* String to match against */  in php_do_pcre_match()  local
544 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
553 php_pcre_match_impl(pce, subject, subject_len, return_value, subpats, in php_do_pcre_match()
559 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_match_impl() argument
659 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
678 …if ((offsets[1] - offsets[0] < 0) || pcre_get_substring_list(subject, offsets, count, &stringlist)… in php_pcre_match_impl()
858 static int preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int … in preg_do_repl_func() argument
870 …add_assoc_stringl(subpats, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[… in preg_do_repl_func()
872 add_next_index_stringl(subpats, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1], 1); in preg_do_repl_func()
886 *result = estrndup(&subject[offsets[0]], result_len); in preg_do_repl_func()
897 static int preg_do_eval(char *eval_str, int eval_str_len, char *subject, in preg_do_eval() argument
933 match = subject + offsets[backref<<1]; in preg_do_eval()
986 char *subject, int subject_len, in php_pcre_replace() argument
997 return php_pcre_replace_impl(pce, subject, subject_len, replace_val, in php_pcre_replace()
1003 PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *rep… in php_pcre_replace_impl() argument
1087 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1099 piece = subject + start_offset; in php_pcre_replace_impl()
1106 match = subject + offsets[0]; in php_pcre_replace_impl()
1112 eval_result_len = preg_do_eval(replace, replace_len, subject, in php_pcre_replace_impl()
1117 …eval_result_len = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, &eval_resu… in php_pcre_replace_impl()
1174 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1242 static char *php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, in… in php_replace_in_subject() argument
1253 convert_to_string_ex(subject); in php_replace_in_subject()
1260 subject_value = estrndup(Z_STRVAL_PP(subject), Z_STRLEN_PP(subject)); in php_replace_in_subject()
1261 subject_len = Z_STRLEN_PP(subject); in php_replace_in_subject()
1316 Z_STRVAL_PP(subject), in php_replace_in_subject()
1317 Z_STRLEN_PP(subject), in php_replace_in_subject()
1334 **subject, in preg_replace_impl() local
1347 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|lZ", &regex, &replace, &subject, &limit,… in preg_replace_impl()
1364 MAKE_COPY_ZVAL(subject, return_value); in preg_replace_impl()
1371 SEPARATE_ZVAL(subject); in preg_replace_impl()
1381 if (Z_TYPE_PP(subject) == IS_ARRAY) { in preg_replace_impl()
1383 zend_hash_internal_pointer_reset(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1387 while (zend_hash_get_current_data(Z_ARRVAL_PP(subject), (void **)&subject_entry) == SUCCESS) { in preg_replace_impl()
1393 switch(zend_hash_get_current_key(Z_ARRVAL_PP(subject), &string_key, &num_key, 0)) in preg_replace_impl()
1408 zend_hash_move_forward(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1412 …if ((result = php_replace_in_subject(*regex, *replace, subject, &result_len, limit_val, is_callabl… in preg_replace_impl()
1457 char *subject; /* String to match against */ in PHP_FUNCTION() local
1466 &subject, &subject_len, &limit_val, &flags) == FAILURE) { in PHP_FUNCTION()
1475 php_pcre_split_impl(pce, subject, subject_len, return_value, limit_val, flags TSRMLS_CC); in PHP_FUNCTION()
1481 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_split_impl() argument
1531 last_match = subject; in php_pcre_split_impl()
1536 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
1551 if (!no_empty || &subject[offsets[0]] != last_match) { in php_pcre_split_impl()
1555 add_offset_pair(return_value, last_match, &subject[offsets[0]]-last_match, next_offset, NULL); in php_pcre_split_impl()
1559 &subject[offsets[0]]-last_match, 1); in php_pcre_split_impl()
1567 last_match = &subject[offsets[1]]; in php_pcre_split_impl()
1577 add_offset_pair(return_value, &subject[offsets[i<<1]], match_len, offsets[i<<1], NULL); in php_pcre_split_impl()
1580 &subject[offsets[i<<1]], in php_pcre_split_impl()
1600 count = pcre_exec(re_bump, extra_bump, subject, in php_pcre_split_impl()
1629 …start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1635 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()
1638 add_next_index_stringl(return_value, last_match, subject + subject_len - last_match, 1); in php_pcre_split_impl()
1800 zval subject = **entry; in php_pcre_grep_impl() local
1803 zval_copy_ctor(&subject); in php_pcre_grep_impl()
1804 convert_to_string(&subject); in php_pcre_grep_impl()
1808 count = pcre_exec(pce->re, extra, Z_STRVAL(subject), in php_pcre_grep_impl()
1809 Z_STRLEN(subject), 0, in php_pcre_grep_impl()
1842 zval_dtor(&subject); in php_pcre_grep_impl()
1870 ZEND_ARG_INFO(0, subject)
1878 ZEND_ARG_INFO(0, subject)
1887 ZEND_ARG_INFO(0, subject)
1895 ZEND_ARG_INFO(0, subject)
1902 ZEND_ARG_INFO(0, subject)