/external/pcre/dist2/src/ |
D | pcre2demo.c | 89 PCRE2_SIZE *ovector; in main() local 198 ovector = pcre2_get_ovector_pointer(match_data); in main() 199 printf("Match succeeded at offset %d\n", (int)ovector[0]); in main() 218 if (ovector[0] > ovector[1]) in main() 221 "From end to start the match was: %.*s\n", (int)(ovector[0] - ovector[1]), in main() 222 (char *)(subject + ovector[1])); in main() 234 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main() 235 size_t substring_length = ovector[2*i+1] - ovector[2*i]; in main() 282 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]); in main() 344 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 | 240 PCRE2_SIZE *ovector; in pcre2_substitute() local 268 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute() 276 scb.ovector = ovector; in pcre2_substitute() 379 if (ovector[1] < ovector[0] || ovector[0] < start_offset) in pcre2_substitute() 393 if (ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in pcre2_substitute() 395 if (ovector[0] == ovector[1] && ovecsave[2] != start_offset) in pcre2_substitute() 419 fraglength = ovector[0] - start_offset; in pcre2_substitute() 628 if (ovector[ng*2] != PCRE2_UNSET) in pcre2_substitute() 696 subptr = subject + ovector[group*2]; in pcre2_substitute() 697 subptrend = subject + ovector[group*2 + 1]; in pcre2_substitute() [all …]
|
D | pcre2posix.c | 392 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in pcre2_regexec() local 396 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec() 397 (int)(ovector[i*2] + so); in pcre2_regexec() 398 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec() 399 (int)(ovector[i*2+1] + so); in pcre2_regexec()
|
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()
|
D | pcre2_jit_test.c | 1776 int match_start, int match_end, PCRE2_SIZE *ovector) in check_invalid_utf_result() argument 1791 if (ovector[0] != (PCRE2_SIZE)match_start) { in check_invalid_utf_result() 1793 pattern_index, type, (int)ovector[0], match_start); in check_invalid_utf_result() 1797 if (ovector[1] != (PCRE2_SIZE)match_end) { in check_invalid_utf_result() 1799 pattern_index, type, (int)ovector[1], match_end); in check_invalid_utf_result() 1981 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_8(mdata); in run_invalid_utf8_test() local 2006 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test() 2016 …esult(pattern_index, "partial match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test() 2183 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_16(mdata); in run_invalid_utf16_test() local 2214 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf16_test() [all …]
|
D | pcre2grep.c | 1899 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text() argument 1944 capturesize = ovector[capture_id + 1] - ovector[capture_id]; in display_output_text() 1947 print_match(subject + ovector[capture_id], capturesize); in display_output_text() 2076 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local 2104 (void)display_output_text(string, TRUE, subject, ovector, capture_top); in pcre2grep_callout() 2184 argslen += ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout() 2270 capturesize = ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout() 2271 memcpy(argsptr, subject + ovector[capture_id], capturesize); in pcre2grep_callout()
|
D | pcre2test.c | 6025 SIZ_CAST scb->ovector[0], SIZ_CAST scb->ovector[1]); in substitute_callout_function() 6027 PCHARSV(scb->input, scb->ovector[0], scb->ovector[1] - scb->ovector[0], in substitute_callout_function() 6502 show_ovector(PCRE2_SIZE *ovector, uint32_t oveccount) in show_ovector() argument 6507 PCRE2_SIZE start = ovector[i]; in show_ovector() 6508 PCRE2_SIZE end = ovector[i+1]; in show_ovector() 6548 PCRE2_SIZE *ovector; in process_data() local 7187 ovector = FLD(match_data, ovector); in process_data() 7225 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data() 7366 show_ovector(ovector, oveccount); in process_data() 7385 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data() [all …]
|
D | pcre2_match.c | 186 #define Fovector F->ovector 564 match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, PCRE2_SIZE *ovector, in match() argument 845 ovector[0] = Fstart_match - mb->start_subject; in match() 846 ovector[1] = Feptr - mb->start_subject; in match() 851 memcpy(ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match() 852 while (--i >= Foffset_top + 2) ovector[i] = PCRE2_UNSET; in match() 5138 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5329 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5481 memcpy((char *)P + offsetof(heapframe, ovector), Fovector, in match() 5555 memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, in match() [all …]
|
D | pcre2_intmodedep.h | 665 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member 833 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 | 459 the offset vector (ovector). */ 547 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \ 548 uint32_t oveccount; /* Count of pairs set in ovector */ \
|
D | pcre2.h.generic | 459 the offset vector (ovector). */ 547 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \ 548 uint32_t oveccount; /* Count of pairs set in ovector */ \
|
D | pcre2_dfa_match.c | 3821 match_data->ovector, /* offset vector */ in pcre2_dfa_match() 3835 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match() 3836 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
|
/external/selinux/mcstrans/src/ |
D | mcstrans.c | 1097 int ovector[OVECCOUNT]; in compute_raw_from_trans() local 1123 …rc = pcre_exec(domain->base_classification_regexp, 0, work, work_len, 0, PCRE_ANCHORED, ovector, O… in compute_raw_from_trans() 1126 pcre_get_substring(work, ovector, rc, 0, &match); in compute_raw_from_trans() 1143 memset(work + ovector[0], '#', ovector[1] - ovector[0]); in compute_raw_from_trans() 1144 char *p=work + ovector[0] + ovector[1]; in compute_raw_from_trans() 1166 rc = pcre_exec(g->prefix_regexp, 0, work, work_len, 0, 0, ovector, OVECCOUNT); in compute_raw_from_trans() 1169 prefix_offset = ovector[0]; in compute_raw_from_trans() 1170 prefix_len = ovector[1] - ovector[0]; in compute_raw_from_trans() 1174 rc = pcre_exec(g->suffix_regexp, 0, work, work_len, 0, 0, ovector, OVECCOUNT); in compute_raw_from_trans() 1177 suffix_offset = ovector[0]; in compute_raw_from_trans() [all …]
|
/external/pcre/dist2/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
|
D | testoutput6 | 53 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\=ovector=10 7148 aaaa\=ovector=3 7153 aaaa\=ovector=4 7309 abcd\=ovector=0 7428 XcX\=ovector=2,get=1,get=2,get=3,get=4,getall 7445 a\=ovector=2,get=1,get=2,getall 7450 aaa\=ovector=2,get=1,get=2,getall
|
/external/pcre/dist2/ |
D | NEWS | 116 actual ovector that was passed to the matching function in the match data 117 block. Instead it points to an internal ovector of a size large enough to hold
|
D | ChangeLog | 9 ovector that shouldn't be changed, in particular after substitute and failed or 217 matches for the ovector, no matches were displayed. 480 30. Some internal structures have a variable-length ovector[] as their last 481 element. Their actual memory is obtained dynamically, giving an ovector of 483 ovector[NUMBER], where NUMBER is large so that array bound checkers don't 485 groups, making the ovector larger than this. The number has been increased to 515 (a) If a pattern had fewer capturing parentheses than the ovector supplied in 518 internal ovector fields. Fixes oss-fuzz issue 781. 536 (g) Similarly refactor the way the variable length ovector is addressed for 548 (a) Check for malloc failures when getting memory for the ovector (POSIX) or [all …]
|
/external/pcre/dist2/doc/ |
D | pcre2test.txt | 934 allvector show the entire ovector 1066 allvector show the entire ovector 1091 ovector=<n> set size of output vector 1107 and ovector subject modifiers work as described below. All other modi- 1166 Showing the entire ovector, for all outcomes 1168 The allvector modifier requests that the entire ovector be shown, what- 1173 checking that there are no unexpected modifications to ovector fields. 1174 Before each match attempt, the ovector is filled with a special value, 1178 it applies to the entire ovector. After a partial match, the first two 1180 amount of ovector that is used depends on the number of matches that [all …]
|
D | pcre2.txt | 2374 ovector. 2379 number of pairs of offsets in the ovector. One pair of offsets is 2393 pointer to a compiled pattern. The ovector is created to be exactly the 2720 ues, called the ovector, which contains the offsets of captured 2722 pcre2_get_ovector_pointer() returns the address of the ovector, and 2726 Within the ovector, the first in each pair of values is set to the off- 2734 first pair of offsets (that is, ovector[0] and ovector[1]) are set. 2756 If the ovector is too small to hold all the captured substring offsets, 2759 called with a match data block whose ovector is of minimum length (that 2777 Elements in the ovector that do not correspond to capturing parentheses [all …]
|