/third_party/pcre2/pcre2/src/ |
D | pcre2demo.c | 89 PCRE2_SIZE *ovector; in main() local 204 ovector = pcre2_get_ovector_pointer(match_data); in main() 205 printf("Match succeeded at offset %d\n", (int)ovector[0]); in main() 227 if (ovector[0] > ovector[1]) in main() 230 "From end to start the match was: %.*s\n", (int)(ovector[0] - ovector[1]), in main() 231 (char *)(subject + ovector[1])); in main() 243 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main() 244 PCRE2_SIZE substring_length = ovector[2*i+1] - ovector[2*i]; in main() 291 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]); in main() 353 PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */ in main() [all …]
|
D | pcre2_substring.c | 89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname() 129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber() 177 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_get_byname() 221 memcpy(yield, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_get_bynumber() 284 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_length_byname() 333 if (match_data->ovector[stringnumber*2] == PCRE2_UNSET) in pcre2_substring_length_bynumber() 342 left = match_data->ovector[stringnumber*2]; in pcre2_substring_length_bynumber() 343 right = match_data->ovector[stringnumber*2+1]; in pcre2_substring_length_bynumber() 381 PCRE2_SIZE *ovector; in pcre2_substring_list_get() local 387 ovector = match_data->ovector; in pcre2_substring_list_get() [all …]
|
D | pcre2_substitute.c | 246 PCRE2_SIZE *ovector; in pcre2_substitute() local 298 memcpy(internal_match_data, match_data, offsetof(pcre2_match_data, ovector) in pcre2_substitute() 305 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute() 313 scb.ovector = ovector; in pcre2_substitute() 425 if (ovector[1] < ovector[0] || ovector[0] < start_offset) in pcre2_substitute() 439 if (ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in pcre2_substitute() 441 if (ovector[0] == ovector[1] && ovecsave[2] != start_offset) in pcre2_substitute() 465 fraglength = ovector[0] - start_offset; in pcre2_substitute() 683 if (ovector[ng*2] != PCRE2_UNSET) in pcre2_substitute() 751 subptr = subject + ovector[group*2]; in pcre2_substitute() [all …]
|
D | pcre2_match_data.c | 62 offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE), in pcre2_match_data_create() 126 return match_data->ovector; in pcre2_get_ovector_pointer() 162 return offsetof(pcre2_match_data, ovector) + in pcre2_get_match_data_size()
|
D | pcre2posix.c | 406 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in pcre2_regexec() local 410 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec() 411 (int)(ovector[i*2] + so); in pcre2_regexec() 412 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec() 413 (int)(ovector[i*2+1] + so); in pcre2_regexec()
|
D | pcre2_jit_test.c | 1790 int match_start, int match_end, PCRE2_SIZE *ovector) in check_invalid_utf_result() argument 1805 if (ovector[0] != (PCRE2_SIZE)match_start) { in check_invalid_utf_result() 1807 pattern_index, type, (int)ovector[0], match_start); in check_invalid_utf_result() 1811 if (ovector[1] != (PCRE2_SIZE)match_end) { in check_invalid_utf_result() 1813 pattern_index, type, (int)ovector[1], match_end); in check_invalid_utf_result() 2000 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_8(mdata); in run_invalid_utf8_test() local 2025 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test() 2035 …esult(pattern_index, "partial match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test() 2210 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_16(mdata); in run_invalid_utf16_test() local 2241 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf16_test() [all …]
|
D | pcre2test.c | 6113 scb->ovector[0], scb->ovector[1]); in substitute_callout_function() 6115 PCHARSV(scb->input, scb->ovector[0], scb->ovector[1] - scb->ovector[0], in substitute_callout_function() 6590 show_ovector(PCRE2_SIZE *ovector, uint32_t oveccount) in show_ovector() argument 6595 PCRE2_SIZE start = ovector[i]; in show_ovector() 6596 PCRE2_SIZE end = ovector[i+1]; in show_ovector() 6636 PCRE2_SIZE *ovector; in process_data() local 7275 ovector = FLD(match_data, ovector); in process_data() 7314 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data() 7473 show_ovector(ovector, oveccount); in process_data() 7492 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data() [all …]
|
D | pcre2grep.c | 2139 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text() argument 2165 capturesize = ovector[value + 1] - ovector[value]; in display_output_text() 2168 print_match(subject + ovector[value], capturesize); in display_output_text() 2249 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local 2277 (void)display_output_text(string, TRUE, subject, ovector, capture_top); in pcre2grep_callout() 2307 argslen += ovector[value + 1] - ovector[value]; in pcre2grep_callout() 2371 capturesize = ovector[value + 1] - ovector[value]; in pcre2grep_callout() 2372 memcpy(argsptr, subject + ovector[value], capturesize); in pcre2grep_callout()
|
D | pcre2_match.c | 186 #define Fovector F->ovector 582 match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, PCRE2_SIZE *ovector, in match() argument 866 ovector[0] = Fstart_match - mb->start_subject; in match() 867 ovector[1] = Feptr - mb->start_subject; in match() 872 memcpy(ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match() 873 while (--i >= Foffset_top + 2) ovector[i] = PCRE2_UNSET; in match() 5214 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5405 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5557 memcpy((char *)P + offsetof(heapframe, ovector), Fovector, in match() 5642 memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, in match() [all …]
|
D | pcre2_intmodedep.h | 664 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member 832 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
|
D | pcre2_pattern_info.c | 168 *((size_t *)where) = offsetof(heapframe, ovector) + in pcre2_pattern_info()
|
D | pcre2.h.in | 469 the offset vector (ovector). */ 557 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \ 558 uint32_t oveccount; /* Count of pairs set in ovector */ \
|
D | pcre2.h.generic | 469 the offset vector (ovector). */ 557 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \ 558 uint32_t oveccount; /* Count of pairs set in ovector */ \
|
D | pcre2_dfa_match.c | 3921 match_data->ovector, /* offset vector */ in pcre2_dfa_match() 3935 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match() 3936 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
|
/third_party/glib/glib/pcre/ |
D | pcre_get.c | 229 get_first_set(const pcre *code, const char *stringname, int *ovector) in get_first_set() argument 232 get_first_set(const pcre16 *code, PCRE_SPTR16 stringname, int *ovector) in get_first_set() 257 if (ovector[n*2] >= 0) return n; in get_first_set() 294 pcre_copy_substring(const char *subject, int *ovector, int stringcount, in pcre_copy_substring() argument 298 pcre16_copy_substring(PCRE_SPTR16 subject, int *ovector, int stringcount, in pcre_copy_substring() 306 yield = ovector[stringnumber+1] - ovector[stringnumber]; in pcre_copy_substring() 308 memcpy(buffer, subject + ovector[stringnumber], IN_UCHARS(yield)); in pcre_copy_substring() 346 int *ovector, int stringcount, const char *stringname, in pcre_copy_named_substring() argument 351 int *ovector, int stringcount, PCRE_SPTR16 stringname, in pcre_copy_named_substring() 355 int n = get_first_set(code, stringname, ovector); in pcre_copy_named_substring() [all …]
|
/third_party/pcre2/pcre2/testdata/ |
D | testinput18 | 60 aaaabbbbzzzz\=ovector=0 61 aaaabbbbzzzz\=ovector=1 62 aaaabbbbzzzz\=ovector=2
|
D | testinput2 | 112 abcb\=ovector=0 113 abcb\=ovector=1 114 abcb\=ovector=2 115 abcb\=ovector=3 116 abcb\=ovector=4 120 abc\=ovector=0 121 abc\=ovector=1 122 abc\=ovector=2 124 aba\=ovector=0 125 aba\=ovector=1 [all …]
|
D | testoutput18 | 90 aaaabbbbzzzz\=ovector=0 92 aaaabbbbzzzz\=ovector=1 94 aaaabbbbzzzz\=ovector=2
|
D | testoutput2 | 246 abcb\=ovector=0 251 abcb\=ovector=1 254 abcb\=ovector=2 258 abcb\=ovector=3 263 abcb\=ovector=4 277 abc\=ovector=0 280 abc\=ovector=1 283 abc\=ovector=2 291 aba\=ovector=0 296 aba\=ovector=1 [all …]
|
D | testinput6 | 27 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\=ovector=10 4633 aaaa\=ovector=3 4634 aaaa\=ovector=4 4726 abcd\=ovector=0 4794 XcX\=ovector=2,get=1,get=2,get=3,get=4,getall 4801 a\=ovector=2,get=1,get=2,getall 4802 aaa\=ovector=2,get=1,get=2,getall
|
/third_party/glib/glib/ |
D | gregex.c | 1014 PCRE2_SIZE *ovector; in g_match_info_next() local 1050 ovector = pcre2_get_ovector_pointer (match_info->match_data); in g_match_info_next() 1056 match_info->offsets[i] = (int) ovector[i]; in g_match_info_next() 2203 PCRE2_SIZE *ovector; in g_regex_match_all_full() local 2248 ovector = pcre2_get_ovector_pointer (info->match_data); in g_regex_match_all_full() 2253 info->offsets[i] = (int) ovector[i]; in g_regex_match_all_full()
|
/third_party/pcre2/pcre2/doc/ |
D | pcre2test.txt | 955 allvector show the entire ovector 1091 allvector show the entire ovector 1116 ovector=<n> set size of output vector 1135 and ovector subject modifiers work as described below. All other modi- 1198 Showing the entire ovector, for all outcomes 1200 The allvector modifier requests that the entire ovector be shown, what- 1205 checking that there are no unexpected modifications to ovector fields. 1206 Before each match attempt, the ovector is filled with a special value, 1210 it applies to the entire ovector. After a partial match, the first two 1212 amount of ovector that is used depends on the number of matches that [all …]
|
D | pcre2.txt | 2479 subject. This is known as the ovector. 2484 number of pairs of offsets in the ovector. 2493 of different lengths at the same point in the subject. The ovector 2507 pointer to a compiled pattern. The ovector is created to be exactly the 2844 ues, called the ovector, which contains the offsets of captured 2846 pcre2_get_ovector_pointer() returns the address of the ovector, and 2850 Within the ovector, the first in each pair of values is set to the off- 2858 first pair of offsets (that is, ovector[0] and ovector[1]) are set. 2880 If the ovector is too small to hold all the captured substring offsets, 2883 called with a match data block whose ovector is of minimum length (that [all …]
|
/third_party/pcre2/pcre2/ |
D | NEWS | 201 actual ovector that was passed to the matching function in the match data 202 block. Instead it points to an internal ovector of a size large enough to hold
|
D | ChangeLog | 595 ovector that shouldn't be changed, in particular after substitute and failed or 803 matches for the ovector, no matches were displayed. 1066 30. Some internal structures have a variable-length ovector[] as their last 1067 element. Their actual memory is obtained dynamically, giving an ovector of 1069 ovector[NUMBER], where NUMBER is large so that array bound checkers don't 1071 groups, making the ovector larger than this. The number has been increased to 1101 (a) If a pattern had fewer capturing parentheses than the ovector supplied in 1104 internal ovector fields. Fixes oss-fuzz issue 781. 1122 (g) Similarly refactor the way the variable length ovector is addressed for 1134 (a) Check for malloc failures when getting memory for the ovector (POSIX) or [all …]
|