Home
last modified time | relevance | path

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

/external/pcre/dist2/src/
Dpcre2demo.c89 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()
219 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main()
220 size_t substring_length = ovector[2*i+1] - ovector[2*i]; in main()
267 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]); in main()
329 PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */ in main()
335 if (ovector[0] == ovector[1]) in main()
337 if (ovector[0] == subject_length) break; in main()
368 ovector[1] = start_offset + 1; /* Advance one code unit */ 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.c238 PCRE2_SIZE *ovector; in pcre2_substitute() local
260 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute()
358 if (ovector[1] < ovector[0]) in pcre2_substitute()
377 fraglength = ovector[0] - start_offset; in pcre2_substitute()
584 if (ovector[ng*2] != PCRE2_UNSET) in pcre2_substitute()
652 subptr = subject + ovector[group*2]; in pcre2_substitute()
653 subptrend = subject + ovector[group*2 + 1]; in pcre2_substitute()
798 start_offset = ovector[1]; in pcre2_substitute()
799 goptions = (ovector[0] != ovector[1])? 0 : in pcre2_substitute()
Dpcre2_match.c159 if (offset >= offset_top || mb->ovector[offset] == PCRE2_UNSET) in match_ref()
171 p = mb->start_subject + mb->ovector[offset]; in match_ref()
172 length = mb->ovector[offset+1] - mb->ovector[offset]; in match_ref()
483 memcpy(ovecsave, mb->ovector, mb->offset_end * sizeof(PCRE2_SIZE)); in op_recurse_ovecsave()
493 memcpy(mb->ovector, new_recursive->ovec_save, in op_recurse_ovecsave()
1009 save_offset1 = mb->ovector[offset]; in match()
1010 save_offset2 = mb->ovector[offset+1]; in match()
1011 save_offset3 = mb->ovector[mb->offset_end - number]; in match()
1015 mb->ovector[mb->offset_end - number] = eptr - mb->start_subject; in match()
1052 mb->ovector[offset] = save_offset1; in match()
[all …]
Dpcre2posix.c338 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in regexec() local
342 pmatch[i].rm_so = ovector[i*2]; in regexec()
343 pmatch[i].rm_eo = ovector[i*2+1]; in regexec()
Dpcre2_match_data.c120 return match_data->ovector; in pcre2_get_ovector_pointer()
Dpcre2test.c6256 PCRE2_SIZE *ovector; in process_data() local
6259 ovector = FLD(match_data, ovector); in process_data()
6268 ovecsave[0] = ovector[0]; in process_data()
6269 ovecsave[1] = ovector[1]; in process_data()
6279 for (j = 0; j < 2*dat_datctl.oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data()
6429 if (gmatched > 0 && ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in process_data()
6464 PCRE2_SIZE start = ovector[i]; in process_data()
6465 PCRE2_SIZE end = ovector[i+1]; in process_data()
6469 start = ovector[i+1]; in process_data()
6470 end = ovector[i]; in process_data()
[all …]
Dpcre2_intmodedep.h641 PCRE2_SIZE ovector[1]; /* The first field */ member
788 PCRE2_SIZE *ovector; /* Pointer to the offset vector */ member
Dpcre2grep.c1552 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local
1640 argslen += ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout()
1726 capturesize = ovector[capture_id + 1] - ovector[capture_id]; in pcre2grep_callout()
1727 memcpy(argsptr, subject + ovector[capture_id], capturesize); in pcre2grep_callout()
Dpcre2_dfa_match.c3568 match_data->ovector, /* offset vector */ in pcre2_dfa_match()
3581 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match()
3582 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
Dpcre2_jit_compile.c2504 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector()
2566 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector), SLJIT_R2, 0); in return_with_partial_match()
2572 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector) + sizeof(PCRE2_SIZE… in return_with_partial_match()
7136 PCRE2_SIZE *ovector = arguments->match_data->ovector; in do_callout() local
7153 callout_block->offset_vector = ovector; in do_callout()
7156 ovector[i] = jit_ovector[i] - begin; in do_callout()
7157 ovector[i + 1] = jit_ovector[i + 1] - begin; in do_callout()
7163 ovector[0] = PCRE2_UNSET; in do_callout()
7164 ovector[1] = PCRE2_UNSET; in do_callout()
Dpcre2.h.in311 the offset vector (ovector). */
Dpcre2.h.generic311 the offset vector (ovector). */
/external/selinux/mcstrans/src/
Dmcstrans.c1096 int ovector[OVECCOUNT]; in compute_raw_from_trans() local
1122 …rc = pcre_exec(domain->base_classification_regexp, 0, work, work_len, 0, PCRE_ANCHORED, ovector, O… in compute_raw_from_trans()
1125 pcre_get_substring(work, ovector, rc, 0, &match); in compute_raw_from_trans()
1142 memset(work + ovector[0], '#', ovector[1] - ovector[0]); in compute_raw_from_trans()
1143 char *p=work + ovector[0] + ovector[1]; in compute_raw_from_trans()
1165 rc = pcre_exec(g->prefix_regexp, 0, work, work_len, 0, 0, ovector, OVECCOUNT); in compute_raw_from_trans()
1168 prefix_offset = ovector[0]; in compute_raw_from_trans()
1169 prefix_len = ovector[1] - ovector[0]; in compute_raw_from_trans()
1173 rc = pcre_exec(g->suffix_regexp, 0, work, work_len, 0, 0, ovector, OVECCOUNT); in compute_raw_from_trans()
1176 suffix_offset = ovector[0]; in compute_raw_from_trans()
[all …]
/external/pcre/dist2/testdata/
Dtestinput1856 aaaabbbbzzzz\=ovector=0
57 aaaabbbbzzzz\=ovector=1
58 aaaabbbbzzzz\=ovector=2
Dtestoutput1883 aaaabbbbzzzz\=ovector=0
85 aaaabbbbzzzz\=ovector=1
87 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 …]
Dtestoutput2244 abcb\=ovector=0
249 abcb\=ovector=1
252 abcb\=ovector=2
256 abcb\=ovector=3
261 abcb\=ovector=4
275 abc\=ovector=0
278 abc\=ovector=1
281 abc\=ovector=2
289 aba\=ovector=0
294 aba\=ovector=1
[all …]
Dtestinput627 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\=ovector=10
4645 aaaa\=ovector=3
4646 aaaa\=ovector=4
4738 abcd\=ovector=0
4806 XcX\=ovector=2,get=1,get=2,get=3,get=4,getall
4813 a\=ovector=2,get=1,get=2,getall
4814 aaa\=ovector=2,get=1,get=2,getall
Dtestoutput653 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\=ovector=10
7166 aaaa\=ovector=3
7171 aaaa\=ovector=4
7327 abcd\=ovector=0
7446 XcX\=ovector=2,get=1,get=2,get=3,get=4,getall
7463 a\=ovector=2,get=1,get=2,getall
7468 aaa\=ovector=2,get=1,get=2,getall
/external/pcre/dist2/doc/
Dpcre2.txt1966 ovector.
1971 number of pairs of offsets in the ovector. One pair of offsets is
1985 pointer to a compiled pattern. The ovector is created to be exactly the
2281 ues, called the ovector, which contains the offsets of captured
2283 pcre2_get_ovector_pointer() returns the address of the ovector, and
2287 Within the ovector, the first in each pair of values is set to the off-
2295 first pair of offsets (that is, ovector[0] and ovector[1]) are set.
2317 If the ovector is too small to hold all the captured substring offsets,
2320 called with a match data block whose ovector is of minimum length (that
2322 ovector is not big enough to remember the related substrings, PCRE2 has
[all …]
Dpcre2test.txt916 ovector=<n> set size of output vector
929 and ovector subject modifiers work as described below. All other modi-
1181 The ovector modifier applies only to the subject line in which it
1191 match block with a zero-length ovector; there is always at least one
/external/pcre/dist2/
DChangeLog757 when matching, if the ovector is too small, extra memory can be obtained to
762 ovector that was too small to hold the capture, and there was no other kind of
830 ovector too small to capture the group.
922 the currrent group as "unset". Thus, the ovector for those groups contained