Lines Matching refs:offsets

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()
1049 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1051 add_named(subpats, subpat_names[i], &val, offsets[2*i] == PCRE2_UNSET); in populate_subpat_array()
1069 subpats, subject, offsets[2*i], offsets[2*i+1], NULL, unmatched_as_null); in populate_subpat_array()
1079 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in populate_subpat_array()
1152 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_match_impl() local
1286 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_match_impl()
1291 if (offsets[1] < offsets[0]) { in php_pcre_match_impl()
1306 &match_sets[i], subject, offsets[2*i], offsets[2*i+1], in php_pcre_match_impl()
1313 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in php_pcre_match_impl()
1348 &result_set, subject, offsets, subpat_names, in php_pcre_match_impl()
1357 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1363 start_offset2 = offsets[1]; in php_pcre_match_impl()
1369 if (start_offset2 == offsets[0]) { in php_pcre_match_impl()
1517 …_info *fci, zend_fcall_info_cache *fcc, const char *subject, PCRE2_SIZE *offsets, zend_string **su… 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()
1542 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1584 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_impl() local
1649 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_impl()
1651 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_impl()
1665 match = subject + offsets[0]; in php_pcre_replace_impl()
1667 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1683 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1726 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1727 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1744 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1750 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1824 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_func_impl() local
1903 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_func_impl()
1905 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_func_impl()
1919 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1921 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1925 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
1953 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1959 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
2504 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_split_impl() local
2572 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_split_impl()
2574 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_split_impl()
2579 if (!no_empty || offsets[0] != last_match_offset) { in php_pcre_split_impl()
2583 return_value, subject, last_match_offset, offsets[0], in php_pcre_split_impl()
2587 populate_match_value_str(&tmp, subject, last_match_offset, offsets[0]); in php_pcre_split_impl()
2600 if (!no_empty || offsets[2*i] != offsets[2*i+1]) { in php_pcre_split_impl()
2603 return_value, subject, offsets[2*i], offsets[2*i+1], NULL, 0); in php_pcre_split_impl()
2605 populate_match_value_str(&tmp, subject, offsets[2*i], offsets[2*i+1]); in php_pcre_split_impl()
2613 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2619 if (start_offset == offsets[0]) { in php_pcre_split_impl()