Home
last modified time | relevance | path

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

12

/third_party/pcre2/pcre2/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()
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 …]
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
311 memcpy(internal_match_data, match_data, offsetof(pcre2_match_data, ovector) in pcre2_substitute()
320 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute()
328 scb.ovector = ovector; in pcre2_substitute()
447 if (ovector[1] < ovector[0] || ovector[0] < start_offset) in pcre2_substitute()
461 if (ovecsave[0] == ovector[0] && ovecsave[1] == ovector[1]) in pcre2_substitute()
463 if (ovector[0] == ovector[1] && ovecsave[2] != start_offset) in pcre2_substitute()
487 fraglength = ovector[0] - start_offset; in pcre2_substitute()
705 if (ovector[ng*2] != PCRE2_UNSET) in pcre2_substitute()
773 subptr = subject + ovector[group*2]; in pcre2_substitute()
[all …]
Dpcre2_match_data.c64 offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE), in pcre2_match_data_create()
133 return match_data->ovector; in pcre2_get_ovector_pointer()
169 return offsetof(pcre2_match_data, ovector) + in pcre2_get_match_data_size()
Dpcre2posix.c396 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); in pcre2_regexec() local
400 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in pcre2_regexec()
401 (int)(ovector[i*2] + so); in pcre2_regexec()
402 pmatch[i].rm_eo = (ovector[i*2+1] == PCRE2_UNSET)? -1 : in pcre2_regexec()
403 (int)(ovector[i*2+1] + so); in pcre2_regexec()
Dpcre2_jit_test.c1794 int match_start, int match_end, PCRE2_SIZE *ovector) in check_invalid_utf_result() argument
1809 if (ovector[0] != (PCRE2_SIZE)match_start) { in check_invalid_utf_result()
1811 pattern_index, type, (int)ovector[0], match_start); in check_invalid_utf_result()
1815 if (ovector[1] != (PCRE2_SIZE)match_end) { in check_invalid_utf_result()
1817 pattern_index, type, (int)ovector[1], match_end); in check_invalid_utf_result()
2004 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_8(mdata); in run_invalid_utf8_test() local
2029 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
2039 …esult(pattern_index, "partial match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
2214 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_16(mdata); in run_invalid_utf16_test() local
2245 …id_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf16_test()
[all …]
Dpcre2test.c6193 scb->ovector[0], scb->ovector[1]); in substitute_callout_function()
6195 PCHARSV(scb->input, scb->ovector[0], scb->ovector[1] - scb->ovector[0], in substitute_callout_function()
6670 show_ovector(PCRE2_SIZE *ovector, uint32_t oveccount) in show_ovector() argument
6675 PCRE2_SIZE start = ovector[i]; in show_ovector()
6676 PCRE2_SIZE end = ovector[i+1]; in show_ovector()
6716 PCRE2_SIZE *ovector; in process_data() local
7361 ovector = FLD(match_data, ovector); in process_data()
7401 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data()
7565 show_ovector(ovector, oveccount); in process_data()
7584 for (j = 0; j < 2*oveccount; j++) ovector[j] = JUNK_OFFSET; in process_data()
[all …]
Dpcre2grep.c2183 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text() argument
2209 capturesize = ovector[value + 1] - ovector[value]; in display_output_text()
2212 print_match(subject + ovector[value], capturesize); in display_output_text()
2294 PCRE2_SIZE *ovector = calloutptr->offset_vector; in pcre2grep_callout() local
2322 (void)display_output_text(string, TRUE, subject, ovector, capture_top); in pcre2grep_callout()
2352 argslen += ovector[value + 1] - ovector[value]; in pcre2grep_callout()
2420 capturesize = ovector[value + 1] - ovector[value]; in pcre2grep_callout()
2421 memcpy(argsptr, subject + ovector[value], capturesize); in pcre2grep_callout()
Dpcre2_match.c187 #define Fovector F->ovector
880 match_data->ovector[0] = Fstart_match - mb->start_subject; in match()
881 match_data->ovector[1] = Feptr - mb->start_subject; in match()
887 memcpy(match_data->ovector + 2, Fovector, (i - 2) * sizeof(PCRE2_SIZE)); in match()
888 while (--i >= Foffset_top + 2) match_data->ovector[i] = PCRE2_UNSET; in match()
5421 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match()
5612 (char *)assert_accept_frame + offsetof(heapframe, ovector), in match()
5764 memcpy((char *)P + offsetof(heapframe, ovector), Fovector, in match()
5849 memcpy((char *)F + offsetof(heapframe, ovector), P->ovector, in match()
6811 frame_size = (offsetof(heapframe, ovector) + in pcre2_match()
[all …]
Dpcre2_intmodedep.h668 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
836 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.in469 the offset vector (ovector). */
557 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \
558 uint32_t oveccount; /* Count of pairs set in ovector */ \
Dpcre2.h.generic469 the offset vector (ovector). */
557 PCRE2_SIZE *ovector; /* Pointer to current ovector */ \
558 uint32_t oveccount; /* Count of pairs set in ovector */ \
/third_party/rust/crates/regex/bench/src/ffi/
Dpcre2.rs12 ovector: *mut size_t, field
62 let ovector = unsafe { pcre2_get_ovector_pointer_8(match_data) }; in new() localVariable
63 if ovector.is_null() { in new()
66 Ok(Regex { code: code, match_data: match_data, ovector: ovector }) in new()
98 Some(unsafe { (*self.ovector, *self.ovector.offset(1)) }) in find_at()
/third_party/glib/patch/
Dbackport-gregex-Avoid-re-allocating-if-we-have-no-size-change.patch19 PCRE2_SIZE *ovector;
30 ovector = pcre2_get_ovector_pointer (match_info->match_data);
44 match_info->offsets[i] = (int) ovector[i];
Dbackport-regex-Compute-the-offsets-size-based-on-match-results.patch6 While the ovector count would include all the allocated space, we only
20 PCRE2_SIZE *ovector;
45 ovector = pcre2_get_ovector_pointer (match_info->match_data);
Dbackport-regex-Use-size-types-more-in-line-with-PCRE2-returned-values.patch53 PCRE2_SIZE *ovector;
/third_party/pcre2/pcre2/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
Dtestinputheap13 abcd\=memory,ovector=0
Dtestoutputheap-834 abcd\=memory,ovector=0
Dtestoutputheap-1634 abcd\=memory,ovector=0
Dtestoutputheap-3234 abcd\=memory,ovector=0
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 …]

12