Lines Matching refs:num_subpats

526 static void free_subpats_table(zend_string **subpat_names, uint32_t num_subpats) {  in free_subpats_table()  argument
528 for (i = 0; i < num_subpats; i++) { in free_subpats_table()
537 static zend_string **make_subpats_table(uint32_t num_subpats, pcre_cache_entry *pce) in make_subpats_table() argument
551 subpat_names = ecalloc(num_subpats, sizeof(zend_string *)); in make_subpats_table()
558 free_subpats_table(subpat_names, num_subpats); in make_subpats_table()
1021 uint32_t num_subpats, int count, const PCRE2_SPTR mark, zend_long flags) { in populate_subpat_array() argument
1035 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1049 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1065 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1076 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1145 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_match_impl() local
1208 num_subpats = pce->capture_count + 1; in php_pcre_match_impl()
1216 subpat_names = make_subpats_table(num_subpats, pce); in php_pcre_match_impl()
1225 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_match_impl()
1232 free_subpats_table(subpat_names, num_subpats); in php_pcre_match_impl()
1240 match_sets = safe_emalloc(num_subpats, sizeof(HashTable *), 0); in php_pcre_match_impl()
1241 for (i=0; i<num_subpats; i++) { in php_pcre_match_impl()
1270 count = num_subpats; in php_pcre_match_impl()
1281 free_subpats_table(subpat_names, num_subpats); in php_pcre_match_impl()
1320 if (count < num_subpats) { in php_pcre_match_impl()
1321 for (int i = count; i < num_subpats; i++) { in php_pcre_match_impl()
1343 num_subpats, count, mark, flags); in php_pcre_match_impl()
1351 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1421 for (i = 0; i < num_subpats; i++) { in php_pcre_match_impl()
1431 for (i = 0; i < num_subpats; i++) { in php_pcre_match_impl()
1447 free_subpats_table(subpat_names, num_subpats); in php_pcre_match_impl()
1541 …ar *subject, PCRE2_SIZE *offsets, zend_string **subpat_names, uint32_t num_subpats, int count, con… in preg_do_repl_func() argument
1548 populate_subpat_array(&arg, subject, offsets, subpat_names, num_subpats, count, mark, flags); in preg_do_repl_func()
1608 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_replace_impl() local
1626 num_subpats = pce->capture_count + 1; in php_pcre_replace_impl()
1637 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_replace_impl()
1671 count = num_subpats; in php_pcre_replace_impl()
1848 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_replace_func_impl() local
1862 num_subpats = pce->capture_count + 1; in php_pcre_replace_func_impl()
1870 subpat_names = make_subpats_table(num_subpats, pce); in php_pcre_replace_func_impl()
1887 if (!old_mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_replace_func_impl()
1895 free_subpats_table(subpat_names, num_subpats); in php_pcre_replace_func_impl()
1924 count = num_subpats; in php_pcre_replace_func_impl()
1948 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
2048 free_subpats_table(subpat_names, num_subpats); in php_pcre_replace_func_impl()
2573 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_split_impl() local
2587 num_subpats = pce->capture_count + 1; in php_pcre_split_impl()
2602 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_split_impl()
2633 count = num_subpats; in php_pcre_split_impl()
2923 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_grep_impl() local
2934 num_subpats = pce->capture_count + 1; in php_pcre_grep_impl()
2942 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_grep_impl()