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()
1157 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_match_impl() local
1291 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_match_impl()
1296 if (offsets[1] < offsets[0]) { in php_pcre_match_impl()
1311 &match_sets[i], subject, offsets[2*i], offsets[2*i+1], in php_pcre_match_impl()
1318 &val, subject, offsets[2*i], offsets[2*i+1], unmatched_as_null); in php_pcre_match_impl()
1353 &result_set, subject, offsets, subpat_names, in php_pcre_match_impl()
1362 subpats, subject, offsets, subpat_names, num_subpats, count, mark, flags); in php_pcre_match_impl()
1368 start_offset2 = offsets[1]; in php_pcre_match_impl()
1374 if (start_offset2 == offsets[0]) { in php_pcre_match_impl()
1522 …_info *fci, zend_fcall_info_cache *fcc, const char *subject, PCRE2_SIZE *offsets, zend_string **su… in preg_do_repl_func() argument
1529 populate_subpat_array(&arg, subject, offsets, subpat_names, num_subpats, count, mark, flags); in preg_do_repl_func()
1547 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1589 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_impl() local
1654 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_impl()
1656 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_impl()
1670 match = subject + offsets[0]; in php_pcre_replace_impl()
1672 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1688 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1731 if (offsets[backref<<1] < SIZE_MAX) { in php_pcre_replace_impl()
1732 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1733 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1751 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1757 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1831 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_func_impl() local
1910 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_func_impl()
1912 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_func_impl()
1926 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1928 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1932 fci, fcc, subject, offsets, subpat_names, num_subpats, count, in php_pcre_replace_func_impl()
1960 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1966 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
2511 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_split_impl() local
2579 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_split_impl()
2581 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_split_impl()
2586 if (!no_empty || offsets[0] != last_match_offset) { in php_pcre_split_impl()
2590 return_value, subject, last_match_offset, offsets[0], in php_pcre_split_impl()
2594 populate_match_value_str(&tmp, subject, last_match_offset, offsets[0]); in php_pcre_split_impl()
2607 if (!no_empty || offsets[2*i] != offsets[2*i+1]) { in php_pcre_split_impl()
2610 return_value, subject, offsets[2*i], offsets[2*i+1], NULL, 0); in php_pcre_split_impl()
2612 populate_match_value_str(&tmp, subject, offsets[2*i], offsets[2*i+1]); in php_pcre_split_impl()
2620 start_offset = last_match_offset = offsets[1]; in php_pcre_split_impl()
2626 if (start_offset == offsets[0]) { in php_pcre_split_impl()