Lines Matching refs:subpats

980 		zval *subpats, zend_string *name, zval *val, bool unmatched) {  in add_named()  argument
984 zend_hash_update(Z_ARRVAL_P(subpats), name, val); in add_named()
986 if (!zend_hash_add(Z_ARRVAL_P(subpats), name, val)) { in add_named()
1028 zval *subpats, const char *subject, PCRE2_SIZE *offsets, zend_string **subpat_names, in populate_subpat_array() argument
1038 subpats, subject, offsets[2*i], offsets[2*i+1], in populate_subpat_array()
1043 add_offset_pair(subpats, NULL, PCRE2_UNSET, PCRE2_UNSET, subpat_names[i], 1); in populate_subpat_array()
1051 add_named(subpats, subpat_names[i], &val, offsets[2*i] == PCRE2_UNSET); in populate_subpat_array()
1053 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &val); in populate_subpat_array()
1059 zend_hash_add(Z_ARRVAL_P(subpats), subpat_names[i], &val); in populate_subpat_array()
1061 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &val); in populate_subpat_array()
1069 subpats, subject, offsets[2*i], offsets[2*i+1], NULL, unmatched_as_null); in populate_subpat_array()
1073 add_offset_pair(subpats, NULL, PCRE2_UNSET, PCRE2_UNSET, NULL, 1); in populate_subpat_array()
1080 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &val); in populate_subpat_array()
1084 add_next_index_null(subpats); in populate_subpat_array()
1091 add_assoc_string_ex(subpats, "MARK", sizeof("MARK") - 1, (char *)mark); in populate_subpat_array()
1101 zval *subpats = NULL; /* Array for subpatterns */ in php_do_pcre_match() local
1109 Z_PARAM_ZVAL(subpats) in php_do_pcre_match()
1125 php_pcre_match_impl(pce, subject, return_value, subpats, in php_do_pcre_match()
1149 zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset) in php_pcre_match_impl() argument
1176 if (subpats != NULL) { in php_pcre_match_impl()
1177 subpats = zend_try_array_init(subpats); in php_pcre_match_impl()
1178 if (!subpats) { in php_pcre_match_impl()
1230 if (subpats && pce->name_count > 0) { in php_pcre_match_impl()
1238 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1294 if (subpats != NULL) { in php_pcre_match_impl()
1306 if (subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1356 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &result_set); in php_pcre_match_impl()
1362 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1430 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1434 zend_hash_update(Z_ARRVAL_P(subpats), subpat_names[i], &match_sets[i]); in php_pcre_match_impl()
1437 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1441 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1447 add_assoc_zval(subpats, "MARK", &marks); in php_pcre_match_impl()