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()
1120 php_pcre_match_impl(pce, subject, return_value, subpats, in php_do_pcre_match()
1144 zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset) in php_pcre_match_impl() argument
1171 if (subpats != NULL) { in php_pcre_match_impl()
1172 subpats = zend_try_array_init(subpats); in php_pcre_match_impl()
1173 if (!subpats) { in php_pcre_match_impl()
1225 if (subpats && pce->name_count > 0) { in php_pcre_match_impl()
1233 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1289 if (subpats != NULL) { in php_pcre_match_impl()
1301 if (subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1351 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &result_set); in php_pcre_match_impl()
1357 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1425 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1429 zend_hash_update(Z_ARRVAL_P(subpats), subpat_names[i], &match_sets[i]); in php_pcre_match_impl()
1432 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1436 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1442 add_assoc_zval(subpats, "MARK", &marks); in php_pcre_match_impl()