Lines Matching refs:subject

556 	char			 *subject;			/* String to match against */  in php_do_pcre_match()  local
565 &subject, &subject_len, &subpats, &flags, &start_offset) == FAILURE) { in php_do_pcre_match()
575 php_pcre_match_impl(pce, subject, subject_len, return_value, subpats, in php_do_pcre_match()
582 PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_match_impl() argument
682 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_match_impl()
701 …if ((offsets[1] - offsets[0] < 0) || pcre_get_substring_list(subject, offsets, count, &stringlist)… in php_pcre_match_impl()
780 int unit_len = calculate_unit_length(pce, subject + start_offset); in php_pcre_match_impl()
883 static int preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int … in preg_do_repl_func() argument
895 …add_assoc_stringl(subpats, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[… in preg_do_repl_func()
897 add_next_index_stringl(subpats, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1], 1); in preg_do_repl_func()
911 *result = estrndup(&subject[offsets[0]], result_len); in preg_do_repl_func()
922 static int preg_do_eval(char *eval_str, int eval_str_len, char *subject, in preg_do_eval() argument
958 match = subject + offsets[backref<<1]; in preg_do_eval()
1011 char *subject, int subject_len, in php_pcre_replace() argument
1023 result = php_pcre_replace_impl(pce, subject, subject_len, replace_val, in php_pcre_replace()
1032 PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *rep… in php_pcre_replace_impl() argument
1120 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1132 piece = subject + start_offset; in php_pcre_replace_impl()
1139 match = subject + offsets[0]; in php_pcre_replace_impl()
1145 eval_result_len = preg_do_eval(replace, replace_len, subject, in php_pcre_replace_impl()
1150 …eval_result_len = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, &eval_resu… in php_pcre_replace_impl()
1207 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1277 static char *php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, in… in php_replace_in_subject() argument
1288 convert_to_string_ex(subject); in php_replace_in_subject()
1295 subject_value = estrndup(Z_STRVAL_PP(subject), Z_STRLEN_PP(subject)); in php_replace_in_subject()
1296 subject_len = Z_STRLEN_PP(subject); in php_replace_in_subject()
1351 Z_STRVAL_PP(subject), in php_replace_in_subject()
1352 Z_STRLEN_PP(subject), in php_replace_in_subject()
1369 **subject, in preg_replace_impl() local
1382 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|lZ", &regex, &replace, &subject, &limit,… in preg_replace_impl()
1399 MAKE_COPY_ZVAL(subject, return_value); in preg_replace_impl()
1406 SEPARATE_ZVAL(subject); in preg_replace_impl()
1416 if (Z_TYPE_PP(subject) == IS_ARRAY) { in preg_replace_impl()
1418 zend_hash_internal_pointer_reset(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1422 while (zend_hash_get_current_data(Z_ARRVAL_PP(subject), (void **)&subject_entry) == SUCCESS) { in preg_replace_impl()
1428 switch(zend_hash_get_current_key(Z_ARRVAL_PP(subject), &string_key, &num_key, 0)) in preg_replace_impl()
1443 zend_hash_move_forward(Z_ARRVAL_PP(subject)); in preg_replace_impl()
1447 …if ((result = php_replace_in_subject(*regex, *replace, subject, &result_len, limit_val, is_callabl… in preg_replace_impl()
1492 char *subject; /* String to match against */ in PHP_FUNCTION() local
1501 &subject, &subject_len, &limit_val, &flags) == FAILURE) { in PHP_FUNCTION()
1511 php_pcre_split_impl(pce, subject, subject_len, return_value, limit_val, flags TSRMLS_CC); in PHP_FUNCTION()
1518 PHPAPI void php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return… in php_pcre_split_impl() argument
1568 last_match = subject; in php_pcre_split_impl()
1573 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
1588 if (!no_empty || &subject[offsets[0]] != last_match) { in php_pcre_split_impl()
1592 add_offset_pair(return_value, last_match, &subject[offsets[0]]-last_match, next_offset, NULL); in php_pcre_split_impl()
1596 &subject[offsets[0]]-last_match, 1); in php_pcre_split_impl()
1604 last_match = &subject[offsets[1]]; in php_pcre_split_impl()
1614 add_offset_pair(return_value, &subject[offsets[i<<1]], match_len, offsets[i<<1], NULL); in php_pcre_split_impl()
1617 &subject[offsets[i<<1]], in php_pcre_split_impl()
1637 count = pcre_exec(re_bump, extra_bump, subject, in php_pcre_split_impl()
1666 …start_offset = last_match - subject; /* the offset might have been incremented, but without furthe… in php_pcre_split_impl()
1672 …add_offset_pair(return_value, &subject[start_offset], subject_len - start_offset, start_offset, NU… in php_pcre_split_impl()
1675 add_next_index_stringl(return_value, last_match, subject + subject_len - last_match, 1); in php_pcre_split_impl()
1839 zval subject = **entry; in php_pcre_grep_impl() local
1842 zval_copy_ctor(&subject); in php_pcre_grep_impl()
1843 convert_to_string(&subject); in php_pcre_grep_impl()
1847 count = pcre_exec(pce->re, extra, Z_STRVAL(subject), in php_pcre_grep_impl()
1848 Z_STRLEN(subject), 0, in php_pcre_grep_impl()
1881 zval_dtor(&subject); in php_pcre_grep_impl()
1909 ZEND_ARG_INFO(0, subject)
1917 ZEND_ARG_INFO(0, subject)
1926 ZEND_ARG_INFO(0, subject)
1934 ZEND_ARG_INFO(0, subject)
1941 ZEND_ARG_INFO(0, subject)