Lines Matching refs:offsets

1020 		zval *subpats, const char *subject, PCRE2_SIZE *offsets, zend_string **subpat_names,  in populate_subpat_array()  argument
1031 subpats_ht, subject, offsets[2*i], offsets[2*i+1], in populate_subpat_array()
1042 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1044 add_named(subpats_ht, subpat_names[i], &val, offsets[2*i] == PCRE2_UNSET); in populate_subpat_array()
1062 subpats_ht, subject, offsets[2*i], offsets[2*i+1], NULL, unmatched_as_null); in populate_subpat_array()
1072 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1247 PCRE2_SIZE *const offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_match_impl() local
1279 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_match_impl()
1294 match_sets[i], subject, offsets[2*i], offsets[2*i+1], in php_pcre_match_impl()
1301 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in php_pcre_match_impl()
1342 &result_set, subject, offsets, subpat_names, in php_pcre_match_impl()
1351 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1357 start_offset2 = offsets[1]; in php_pcre_match_impl()
1363 if (start_offset2 == offsets[0]) { in php_pcre_match_impl()
1541 …_info *fci, zend_fcall_info_cache *fcc, const char *subject, PCRE2_SIZE *offsets, zend_string **su… 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()
1566 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1650 PCRE2_SIZE *const offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_impl() local
1675 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_impl()
1689 match = subject + offsets[0]; in php_pcre_replace_impl()
1691 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1707 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1750 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1751 walkbuf = zend_mempcpy(walkbuf, subject + offsets[backref << 1], match_len); in php_pcre_replace_impl()
1767 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1773 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1905 PCRE2_SIZE *const offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_func_impl() local
1928 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_func_impl()
1942 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1944 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1948 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
1976 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1982 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
2616 PCRE2_SIZE *const offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_split_impl() local
2637 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_split_impl()
2642 if (!no_empty || offsets[0] != last_match_offset) { in php_pcre_split_impl()
2646 return_value_ht, subject, last_match_offset, offsets[0], in php_pcre_split_impl()
2650 populate_match_value_str(&tmp, subject, last_match_offset, offsets[0]); in php_pcre_split_impl()
2663 if (!no_empty || offsets[2*i] != offsets[2*i+1]) { in php_pcre_split_impl()
2666 return_value_ht, subject, offsets[2*i], offsets[2*i+1], NULL, 0); in php_pcre_split_impl()
2668 populate_match_value_str(&tmp, subject, offsets[2*i], offsets[2*i+1]); in php_pcre_split_impl()
2676 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2682 if (start_offset == offsets[0]) { in php_pcre_split_impl()