Lines Matching refs:subpat_names

197 	char **subpat_names = (char **)ecalloc(num_subpats, sizeof(char *));  in make_subpats_table()  local
202 efree(subpat_names); in make_subpats_table()
213 efree(subpat_names); in make_subpats_table()
219 subpat_names[name_idx] = name_table + 2; in make_subpats_table()
220 …if (is_numeric_string(subpat_names[name_idx], strlen(subpat_names[name_idx]), NULL, NULL, 0) > 0) { in make_subpats_table()
222 efree(subpat_names); in make_subpats_table()
229 return subpat_names; in make_subpats_table()
605 char **subpat_names; /* Array for named subpatterns */ in php_pcre_match_impl() local
672 subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC); in php_pcre_match_impl()
673 if (!subpat_names) { in php_pcre_match_impl()
714 efree(subpat_names); in php_pcre_match_impl()
761 offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], subpat_names[i]); in php_pcre_match_impl()
763 if (subpat_names[i]) { in php_pcre_match_impl()
764 add_assoc_stringl(result_set, subpat_names[i], (char *)stringlist[i], in php_pcre_match_impl()
784 offsets[i<<1], subpat_names[i]); in php_pcre_match_impl()
786 if (subpat_names[i]) { in php_pcre_match_impl()
787 add_assoc_stringl(subpats, subpat_names[i], (char *)stringlist[i], in php_pcre_match_impl()
832 if (subpat_names[i]) { in php_pcre_match_impl()
833 zend_hash_update(Z_ARRVAL_P(subpats), subpat_names[i], in php_pcre_match_impl()
834 strlen(subpat_names[i])+1, &match_sets[i], sizeof(zval *), NULL); in php_pcre_match_impl()
847 efree(subpat_names); 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
926 if (subpat_names[i]) { in preg_do_repl_func()
927 …add_assoc_stringl(subpats, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[… in preg_do_repl_func()
1075 char **subpat_names; /* Array for named subpatterns */ in php_pcre_replace_impl() local
1142 subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC); in php_pcre_replace_impl()
1143 if (!subpat_names) { 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()
1309 efree(subpat_names); in php_pcre_replace_impl()