Lines Matching refs:num_subpats

528 static void free_subpats_table(zend_string **subpat_names, uint32_t num_subpats) {  in free_subpats_table()  argument
530 for (i = 0; i < num_subpats; i++) { in free_subpats_table()
539 static zend_string **make_subpats_table(uint32_t num_subpats, pcre_cache_entry *pce) in make_subpats_table() argument
553 subpat_names = ecalloc(num_subpats, sizeof(zend_string *)); in make_subpats_table()
560 free_subpats_table(subpat_names, num_subpats); in make_subpats_table()
1029 uint32_t num_subpats, int count, const PCRE2_SPTR mark, zend_long flags) { in populate_subpat_array() argument
1042 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1056 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1072 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1083 for (i = count; i < num_subpats; i++) { in populate_subpat_array()
1153 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_match_impl() local
1218 num_subpats = pce->capture_count + 1; in php_pcre_match_impl()
1226 subpat_names = make_subpats_table(num_subpats, pce); in php_pcre_match_impl()
1234 match_sets = (zval *)safe_emalloc(num_subpats, sizeof(zval), 0); in php_pcre_match_impl()
1235 for (i=0; i<num_subpats; i++) { in php_pcre_match_impl()
1243 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_match_impl()
1250 free_subpats_table(subpat_names, num_subpats); in php_pcre_match_impl()
1280 count = num_subpats; in php_pcre_match_impl()
1293 free_subpats_table(subpat_names, num_subpats); in php_pcre_match_impl()
1330 if (count < num_subpats) { in php_pcre_match_impl()
1331 for (; i < num_subpats; i++) { in php_pcre_match_impl()
1349 num_subpats, count, mark, flags); in php_pcre_match_impl()
1357 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1427 for (i = 0; i < num_subpats; i++) { in php_pcre_match_impl()
1435 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()
1517 …ar *subject, PCRE2_SIZE *offsets, zend_string **subpat_names, uint32_t num_subpats, int count, con… in preg_do_repl_func() argument
1524 populate_subpat_array(&arg, subject, offsets, subpat_names, num_subpats, count, mark, flags); in preg_do_repl_func()
1585 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_replace_impl() local
1603 num_subpats = pce->capture_count + 1; in php_pcre_replace_impl()
1614 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_replace_impl()
1645 count = num_subpats; in php_pcre_replace_impl()
1826 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_replace_func_impl() local
1840 num_subpats = pce->capture_count + 1; in php_pcre_replace_func_impl()
1848 subpat_names = make_subpats_table(num_subpats, pce); in php_pcre_replace_func_impl()
1865 if (!old_mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_replace_func_impl()
1873 free_subpats_table(subpat_names, num_subpats); in php_pcre_replace_func_impl()
1899 count = num_subpats; in php_pcre_replace_func_impl()
1925 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
2025 free_subpats_table(subpat_names, num_subpats); in php_pcre_replace_func_impl()
2512 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_split_impl() local
2525 num_subpats = pce->capture_count + 1; in php_pcre_split_impl()
2540 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_split_impl()
2568 count = num_subpats; in php_pcre_split_impl()
2860 uint32_t num_subpats; /* Number of captured subpatterns */ in php_pcre_grep_impl() local
2871 num_subpats = pce->capture_count + 1; in php_pcre_grep_impl()
2878 if (!mdata_used && num_subpats <= PHP_PCRE_PREALLOC_MDATA_SIZE) { in php_pcre_grep_impl()