Lines Matching refs:subpat_names
191 char **subpat_names = (char **)ecalloc(num_subpats, sizeof(char *)); in make_subpats_table() local
196 efree(subpat_names); in make_subpats_table()
207 efree(subpat_names); in make_subpats_table()
213 subpat_names[name_idx] = name_table + 2; in make_subpats_table()
214 …if (is_numeric_string(subpat_names[name_idx], strlen(subpat_names[name_idx]), NULL, NULL, 0) > 0) { in make_subpats_table()
216 efree(subpat_names); in make_subpats_table()
223 return subpat_names; in make_subpats_table()
550 char **subpat_names; /* Array for named subpatterns */ in php_pcre_match_impl() local
611 subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC); in php_pcre_match_impl()
612 if (!subpat_names) { in php_pcre_match_impl()
653 efree(subpat_names); in php_pcre_match_impl()
692 offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], subpat_names[i]); in php_pcre_match_impl()
694 if (subpat_names[i]) { in php_pcre_match_impl()
695 add_assoc_stringl(result_set, subpat_names[i], (char *)stringlist[i], in php_pcre_match_impl()
711 offsets[i<<1], subpat_names[i]); in php_pcre_match_impl()
713 if (subpat_names[i]) { in php_pcre_match_impl()
714 add_assoc_stringl(subpats, subpat_names[i], (char *)stringlist[i], in php_pcre_match_impl()
753 if (subpat_names[i]) { in php_pcre_match_impl()
754 zend_hash_update(Z_ARRVAL_P(subpats), subpat_names[i], in php_pcre_match_impl()
755 strlen(subpat_names[i])+1, &match_sets[i], sizeof(zval *), NULL); in php_pcre_match_impl()
764 efree(subpat_names); in php_pcre_match_impl()
832 static int preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int … in preg_do_repl_func() argument
843 if (subpat_names[i]) { in preg_do_repl_func()
844 …add_assoc_stringl(subpats, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[… in preg_do_repl_func()
985 char **subpat_names; /* Array for named subpatterns */ in php_pcre_replace_impl() local
1043 subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC); in php_pcre_replace_impl()
1044 if (!subpat_names) { in php_pcre_replace_impl()
1091 …eval_result_len = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, &eval_resu… in php_pcre_replace_impl()
1208 efree(subpat_names); in php_pcre_replace_impl()