Lines Matching refs:offsets

1047 		zval *subpats, const char *subject, PCRE2_SIZE *offsets, zend_string **subpat_names,  in populate_subpat_array()  argument
1057 subpats, subject, offsets[2*i], offsets[2*i+1], in populate_subpat_array()
1068 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1070 add_named(subpats, subpat_names[i], &val, offsets[2*i] == PCRE2_UNSET); in populate_subpat_array()
1088 subpats, subject, offsets[2*i], offsets[2*i+1], NULL, unmatched_as_null); in populate_subpat_array()
1098 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1171 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_match_impl() local
1305 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_match_impl()
1310 if (offsets[1] < offsets[0]) { in php_pcre_match_impl()
1325 &match_sets[i], subject, offsets[2*i], offsets[2*i+1], in php_pcre_match_impl()
1332 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in php_pcre_match_impl()
1367 &result_set, subject, offsets, subpat_names, in php_pcre_match_impl()
1376 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1382 start_offset2 = offsets[1]; in php_pcre_match_impl()
1388 if (start_offset2 == offsets[0]) { in php_pcre_match_impl()
1536 …_info *fci, zend_fcall_info_cache *fcc, const char *subject, PCRE2_SIZE *offsets, zend_string **su… in preg_do_repl_func() argument
1543 populate_subpat_array(&arg, subject, offsets, subpat_names, num_subpats, count, mark, flags); in preg_do_repl_func()
1561 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1603 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_impl() local
1668 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_impl()
1670 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_impl()
1684 match = subject + offsets[0]; in php_pcre_replace_impl()
1686 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1702 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1745 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1746 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1763 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1769 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1843 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_func_impl() local
1922 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_func_impl()
1924 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_func_impl()
1938 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1940 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1944 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
1972 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1978 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
2523 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_split_impl() local
2591 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_split_impl()
2593 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_split_impl()
2598 if (!no_empty || offsets[0] != last_match_offset) { in php_pcre_split_impl()
2602 return_value, subject, last_match_offset, offsets[0], in php_pcre_split_impl()
2606 populate_match_value_str(&tmp, subject, last_match_offset, offsets[0]); in php_pcre_split_impl()
2619 if (!no_empty || offsets[2*i] != offsets[2*i+1]) { in php_pcre_split_impl()
2622 return_value, subject, offsets[2*i], offsets[2*i+1], NULL, 0); in php_pcre_split_impl()
2624 populate_match_value_str(&tmp, subject, offsets[2*i], offsets[2*i+1]); in php_pcre_split_impl()
2632 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2638 if (start_offset == offsets[0]) { in php_pcre_split_impl()