Home
last modified time | relevance | path

Searched refs:ovector (Results 1 – 25 of 26) sorted by relevance

12

/external/pcre/dist2/src/
Dpcre2demo.c89 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()
224 if (ovector[0] > ovector[1]) in main()
227 "From end to start the match was: %.*s\n", (int)(ovector[0] - ovector[1]), in main()
228 (char *)(subject + ovector[1])); in main()
240 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main()
241 PCRE2_SIZE substring_length = ovector[2*i+1] - ovector[2*i]; in main()
288 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]); in main()
350 PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */ in main()
[all …]
Dpcre2_substring.c89 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 …]
Dpcre2_substitute.c246 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 …]
Dpcre2_match_data.c62 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()
Dpcre2posix.c391 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in pcre2_regexec() local
395 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
396 (int)(ovector[i*2] + so); in pcre2_regexec()
397 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
398 (int)(ovector[i*2+1] + so); in pcre2_regexec()
Dpcre2_jit_test.c1786 int match_start, int match_end, PCRE2_SIZE *ovector) in check_invalid_utf_result() argument
1801 if (ovector[0] != (PCRE2_SIZE)match_start) { in check_invalid_utf_result()
1803 pattern_index, type, (int)ovector[0], match_start); in check_invalid_utf_result()
1807 if (ovector[1] != (PCRE2_SIZE)match_end) { in check_invalid_utf_result()
1809 pattern_index, type, (int)ovector[1], match_end); in check_invalid_utf_result()
1996 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_8(mdata); in run_invalid_utf8_test() local
2021 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
2031 …esult(pattern_index, "partial match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
2206 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_16(mdata); in run_invalid_utf16_test() local
2237 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf16_test()
[all …]
Dpcre2test.c6110 SIZ_CAST scb->ovector[0], SIZ_CAST scb->ovector[1]); in substitute_callout_function()
6112 PCHARSV(scb->input, scb->ovector[0], scb->ovector[1] - scb->ovector[0], in substitute_callout_function()
6587 show_ovector(PCRE2_SIZE *ovector, uint32_t oveccount) in show_ovector() argument
6592 PCRE2_SIZE start = ovector[i]; in show_ovector()
6593 PCRE2_SIZE end = ovector[i+1]; in show_ovector()
6633 PCRE2_SIZE *ovector; in process_data() local
7272 ovector = FLD(match_data, ovector); in process_data()
7311 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data()
7470 show_ovector(ovector, oveccount); in process_data()
7489 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data()
[all …]
Dpcre2grep.c2137 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text() argument
2163 capturesize = ovector[value + 1] - ovector[value]; in display_output_text()
2166 print_match(subject + ovector[value], capturesize); in display_output_text()
2247 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local
2275 (void)display_output_text(string, TRUE, subject, ovector, capture_top); in pcre2grep_callout()
2305 argslen += ovector[value + 1] - ovector[value]; in pcre2grep_callout()
2369 capturesize = ovector[value + 1] - ovector[value]; in pcre2grep_callout()
2370 memcpy(argsptr, subject + ovector[value], capturesize); in pcre2grep_callout()
Dpcre2_match.c186 #define Fovector F->ovector
582 match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, PCRE2_SIZE *ovector, in match() argument
864 ovector[0] = Fstart_match - mb->start_subject; in match()
865 ovector[1] = Feptr - mb->start_subject; in match()
870 memcpy(ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match()
871 while (--i >= Foffset_top + 2) ovector[i] = PCRE2_UNSET; in match()
5212 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match()
5403 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match()
5555 memcpy((char *)P + offsetof(heapframe, ovector), Fovector, in match()
5640 memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, in match()
[all …]
Dpcre2_intmodedep.h664 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
832 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
Dpcre2_pattern_info.c168 *((size_t *)where) = offsetof(heapframe, ovector) + in pcre2_pattern_info()
Dpcre2.h.generic467 the offset vector (ovector). */
555 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \
556 uint32_t oveccount; /* Count of pairs set in ovector */ \
Dpcre2.h.in467 the offset vector (ovector). */
555 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \
556 uint32_t oveccount; /* Count of pairs set in ovector */ \
Dpcre2_dfa_match.c3902 match_data->ovector, /* offset vector */ in pcre2_dfa_match()
3916 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match()
3917 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
Dpcre2_jit_compile.c3301 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector()
3313 …OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_R2, 0, SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - si… in copy_ovector()
3404 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector), SLJIT_R2, 0); in return_with_partial_match()
3410 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector) + sizeof(PCRE2_SIZE… in return_with_partial_match()
9464 PCRE2_SIZE *ovector; in do_callout() local
9473 ovector = (PCRE2_SIZE*)(callout_block + 1); in do_callout()
9489 callout_block->offset_vector = ovector; in do_callout()
9491 ovector[0] = PCRE2_UNSET; in do_callout()
9492 ovector[1] = PCRE2_UNSET; in do_callout()
9493 ovector += 2; in do_callout()
[all …]
/external/selinux/mcstrans/src/
Dmcstrans.c1097 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/
Dtestinput1860 aaaabbbbzzzz\=ovector=0
61 aaaabbbbzzzz\=ovector=1
62 aaaabbbbzzzz\=ovector=2
Dtestinput2112 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 …]
Dtestoutput1890 aaaabbbbzzzz\=ovector=0
92 aaaabbbbzzzz\=ovector=1
94 aaaabbbbzzzz\=ovector=2
Dtestoutput2246 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 …]
Dtestinput627 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
/external/pcre/dist2/doc/
Dpcre2test.txt957 allvector show the entire ovector
1092 allvector show the entire ovector
1117 ovector=<n> set size of output vector
1136 and ovector subject modifiers work as described below. All other modi-
1199 Showing the entire ovector, for all outcomes
1201 The allvector modifier requests that the entire ovector be shown, what-
1206 checking that there are no unexpected modifications to ovector fields.
1207 Before each match attempt, the ovector is filled with a special value,
1211 it applies to the entire ovector. After a partial match, the first two
1213 amount of ovector that is used depends on the number of matches that
[all …]
Dpcre2.txt2468 ovector.
2473 number of pairs of offsets in the ovector. One pair of offsets is re-
2487 pointer to a compiled pattern. The ovector is created to be exactly the
2822 ues, called the ovector, which contains the offsets of captured
2824 pcre2_get_ovector_pointer() returns the address of the ovector, and
2828 Within the ovector, the first in each pair of values is set to the off-
2836 first pair of offsets (that is, ovector[0] and ovector[1]) are set.
2858 If the ovector is too small to hold all the captured substring offsets,
2861 called with a match data block whose ovector is of minimum length (that
2879 Elements in the ovector that do not correspond to capturing parentheses
[all …]
/external/pcre/dist2/
DNEWS167 actual ovector that was passed to the matching function in the match data
168 block. Instead it points to an internal ovector of a size large enough to hold
DChangeLog420 ovector that shouldn't be changed, in particular after substitute and failed or
628 matches for the ovector, no matches were displayed.
891 30. Some internal structures have a variable-length ovector[] as their last
892 element. Their actual memory is obtained dynamically, giving an ovector of
894 ovector[NUMBER], where NUMBER is large so that array bound checkers don't
896 groups, making the ovector larger than this. The number has been increased to
926 (a) If a pattern had fewer capturing parentheses than the ovector supplied in
929 internal ovector fields. Fixes oss-fuzz issue 781.
947 (g) Similarly refactor the way the variable length ovector is addressed for
959 (a) Check for malloc failures when getting memory for the ovector (POSIX) or
[all …]

12