Lines Matching refs:offsets

1020 	PCRE2_SIZE		*offsets;			/* Array of subpattern offsets */  in php_pcre_match_impl()  local
1146 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_match_impl()
1151 if (offsets[1] < offsets[0]) { in php_pcre_match_impl()
1165 add_offset_pair(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
1166 offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], NULL, unmatched_as_null); in php_pcre_match_impl()
1170 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1177 add_next_index_stringl(&match_sets[i], subject + offsets[i<<1], in php_pcre_match_impl()
1178 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1212 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1213 offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], subpat_names[i], unmatched_as_null); in php_pcre_match_impl()
1218 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1225 add_assoc_stringl(&result_set, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1226 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1229 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1236 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1237 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1244 add_offset_pair(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1245 offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], NULL, unmatched_as_null); in php_pcre_match_impl()
1249 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1256 add_next_index_stringl(&result_set, subject + offsets[i<<1], in php_pcre_match_impl()
1257 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1275 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1276 offsets[(i<<1)+1] - offsets[i<<1], in php_pcre_match_impl()
1277 offsets[i<<1], subpat_names[i], unmatched_as_null); in php_pcre_match_impl()
1282 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1289 add_assoc_stringl(subpats, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1290 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1293 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1300 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1301 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1308 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1309 offsets[(i<<1)+1] - offsets[i<<1], in php_pcre_match_impl()
1310 offsets[i<<1], NULL, unmatched_as_null); in php_pcre_match_impl()
1314 if (PCRE2_UNSET == offsets[i<<1]) { in php_pcre_match_impl()
1321 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1322 offsets[(i<<1)+1] - offsets[i<<1]); in php_pcre_match_impl()
1337 start_offset2 = offsets[1]; in php_pcre_match_impl()
1343 if (start_offset2 == offsets[0]) { in php_pcre_match_impl()
1491 …_fcall_info *fci, zend_fcall_info_cache *fcc, char *subject, PCRE2_SIZE *offsets, char **subpat_na… in preg_do_repl_func() argument
1502 …add_assoc_stringl(&arg, subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[i<<… in preg_do_repl_func()
1504 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1508 add_next_index_stringl(&arg, &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); in preg_do_repl_func()
1532 result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); in preg_do_repl_func()
1570 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_impl() local
1635 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_impl()
1637 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_impl()
1651 match = subject + offsets[0]; in php_pcre_replace_impl()
1653 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1669 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1712 match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1713 memcpy(walkbuf, subject + offsets[backref<<1], match_len); in php_pcre_replace_impl()
1730 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_impl()
1736 if (start_offset == offsets[0]) { in php_pcre_replace_impl()
1812 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_replace_func_impl() local
1891 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_replace_func_impl()
1893 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_replace_func_impl()
1907 match = subject + offsets[0]; in php_pcre_replace_func_impl()
1909 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1912 eval_result = preg_do_repl_func(fci, fcc, subject, offsets, subpat_names, count, in php_pcre_replace_func_impl()
1940 start_offset = last_end_offset = offsets[1]; in php_pcre_replace_func_impl()
1946 if (start_offset == offsets[0]) { in php_pcre_replace_func_impl()
2495 PCRE2_SIZE *offsets; /* Array of subpattern offsets */ in php_pcre_split_impl() local
2565 offsets = pcre2_get_ovector_pointer(match_data); in php_pcre_split_impl()
2567 if (UNEXPECTED(offsets[1] < offsets[0])) { in php_pcre_split_impl()
2572 if (!no_empty || &ZSTR_VAL(subject_str)[offsets[0]] != last_match) { in php_pcre_split_impl()
2576 …add_offset_pair(return_value, last_match, (&ZSTR_VAL(subject_str)[offsets[0]]-last_match), next_of… in php_pcre_split_impl()
2579 ZVAL_STRINGL(&tmp, last_match, &ZSTR_VAL(subject_str)[offsets[0]]-last_match); in php_pcre_split_impl()
2588 last_match = &ZSTR_VAL(subject_str)[offsets[1]]; in php_pcre_split_impl()
2589 next_offset = offsets[1]; in php_pcre_split_impl()
2594 match_len = offsets[(i<<1)+1] - offsets[i<<1]; in php_pcre_split_impl()
2598 …add_offset_pair(return_value, &ZSTR_VAL(subject_str)[offsets[i<<1]], match_len, offsets[i<<1], NUL… in php_pcre_split_impl()
2600 ZVAL_STRINGL(&tmp, &ZSTR_VAL(subject_str)[offsets[i<<1]], match_len); in php_pcre_split_impl()
2608 start_offset = offsets[1]; in php_pcre_split_impl()
2614 if (start_offset == offsets[0]) { in php_pcre_split_impl()