/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 264 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute() 368 if (ovector[1] < ovector[0] || ovector[0] < start_offset) in pcre2_substitute() 382 if (ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in pcre2_substitute() 384 if (ovector[0] == ovector[1] && ovecsave[2] != start_offset) in pcre2_substitute() 407 fraglength = ovector[0] - start_offset; in pcre2_substitute() 614 if (ovector[ng*2] != PCRE2_UNSET) in pcre2_substitute() 682 subptr = subject + ovector[group*2]; in pcre2_substitute() 683 subptrend = subject + ovector[group*2 + 1]; in pcre2_substitute() 829 ovecsave[0] = ovector[0]; in pcre2_substitute() [all …]
|
D | pcre2posix.c | 343 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in regexec() local 347 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in regexec() 348 (int)(ovector[i*2] + so); in regexec() 349 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in regexec() 350 (int)(ovector[i*2+1] + so); in regexec()
|
D | pcre2_match_data.c | 62 offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE), in pcre2_match_data_create() 120 return match_data->ovector; in pcre2_get_ovector_pointer()
|
D | pcre2grep.c | 1891 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text() argument 1936 capturesize = ovector[capture_id + 1] - ovector[capture_id]; in display_output_text() 1939 print_match(subject + ovector[capture_id], capturesize); in display_output_text() 2067 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local 2091 (void)display_output_text(string, TRUE, subject, ovector, capture_top); in pcre2grep_callout() 2167 argslen += ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout() 2253 capturesize = ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout() 2254 memcpy(argsptr, subject + ovector[capture_id], capturesize); in pcre2grep_callout()
|
D | pcre2_match.c | 185 #define Fovector F->ovector 563 match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, PCRE2_SIZE *ovector, in match() argument 844 ovector[0] = Fstart_match - mb->start_subject; in match() 845 ovector[1] = Feptr - mb->start_subject; in match() 850 memcpy(ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match() 851 while (--i >= Foffset_top + 2) ovector[i] = PCRE2_UNSET; in match() 5136 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5327 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match() 5479 memcpy((char *)P + offsetof(heapframe, ovector), Fovector, in match() 5545 memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, in match() [all …]
|
D | pcre2test.c | 7128 PCRE2_SIZE *ovector; in process_data() local 7130 ovector = FLD(match_data, ovector); in process_data() 7135 for (j = 0; j < 2*dat_datctl.oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data() 7311 if (gmatched > 0 && ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in process_data() 7313 if (ovector[0] == ovector[1] && ovecsave[2] != dat_datctl.offset) in process_data() 7352 PCRE2_SIZE start = ovector[i]; in process_data() 7353 PCRE2_SIZE end = ovector[i+1]; in process_data() 7357 start = ovector[i+1]; in process_data() 7358 end = ovector[i]; in process_data() 7462 PCHARSV(pp, ovector[i+1], ulen - ovector[i+1], utf, outfile); in process_data() [all …]
|
D | pcre2_intmodedep.h | 662 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member 830 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_dfa_match.c | 3798 match_data->ovector, /* offset vector */ in pcre2_dfa_match() 3812 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match() 3813 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
|
D | pcre2_jit_compile.c | 2843 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector() 2931 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector), SLJIT_R2, 0); in return_with_partial_match() 2937 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector) + sizeof(PCRE2_SIZE… in return_with_partial_match() 8205 PCRE2_SIZE *ovector; in do_callout() local 8214 ovector = (PCRE2_SIZE*)(callout_block + 1); in do_callout() 8230 callout_block->offset_vector = ovector; in do_callout() 8232 ovector[0] = PCRE2_UNSET; in do_callout() 8233 ovector[1] = PCRE2_UNSET; in do_callout() 8234 ovector += 2; in do_callout() 8243 ovector[0] = (PCRE2_SIZE)(jit_ovector[0] - begin); in do_callout() [all …]
|
D | pcre2.h.in | 472 the offset vector (ovector). */
|
D | pcre2.h.generic | 472 the offset vector (ovector). */
|
/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 | testoutput18 | 90 aaaabbbbzzzz\=ovector=0 92 aaaabbbbzzzz\=ovector=1 94 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 | 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 | 68 actual ovector that was passed to the matching function in the match data 69 block. Instead it points to an internal ovector of a size large enough to hold
|
D | ChangeLog | 61 matches for the ovector, no matches were displayed. 324 30. Some internal structures have a variable-length ovector[] as their last 325 element. Their actual memory is obtained dynamically, giving an ovector of 327 ovector[NUMBER], where NUMBER is large so that array bound checkers don't 329 groups, making the ovector larger than this. The number has been increased to 359 (a) If a pattern had fewer capturing parentheses than the ovector supplied in 362 internal ovector fields. Fixes oss-fuzz issue 781. 380 (g) Similarly refactor the way the variable length ovector is addressed for 392 (a) Check for malloc failures when getting memory for the ovector (POSIX) or 1690 when matching, if the ovector is too small, extra memory can be obtained to [all …]
|
/external/pcre/dist2/doc/ |
D | pcre2.txt | 2328 ovector. 2333 number of pairs of offsets in the ovector. One pair of offsets is 2347 pointer to a compiled pattern. The ovector is created to be exactly the 2653 ues, called the ovector, which contains the offsets of captured 2655 pcre2_get_ovector_pointer() returns the address of the ovector, and 2659 Within the ovector, the first in each pair of values is set to the off- 2667 first pair of offsets (that is, ovector[0] and ovector[1]) are set. 2689 If the ovector is too small to hold all the captured substring offsets, 2692 called with a match data block whose ovector is of minimum length (that 2710 Elements in the ovector that do not correspond to capturing parentheses [all …]
|
D | pcre2test.txt | 1084 ovector=<n> set size of output vector 1097 and ovector subject modifiers work as described below. All other modi- 1363 The ovector modifier applies only to the subject line in which it 1373 match block with a zero-length ovector; there is always at least one
|