Home
last modified time | relevance | path

Searched refs:ovector (Results 1 - 14 of 14) sorted by relevance

/third_party/pcre2/pcre2/src/
H A 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()
218 printf("ovector was not big enough for all the captured substrings\n"); 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[ in main()
[all...]
H A Dpcre2_substring.c68 (3) PCRE2_ERROR_UNAVAILABLE: no group is in ovector
69 (4) PCRE2_ERROR_UNSET: all named groups in ovector are unset
89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname()
116 PCRE2_ERROR_UNAVAILABLE: ovector too small
129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber()
156 (3) PCRE2_ERROR_UNAVAILABLE: no group is in ovector
157 (4) PCRE2_ERROR_UNSET: all named groups in ovector are unset
177 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_get_byname()
204 PCRE2_ERROR_UNAVAILABLE: ovector too small
221 memcpy(yield, match_data->subject + match_data->ovector[stringnumbe in pcre2_substring_get_bynumber()
381 PCRE2_SIZE *ovector; pcre2_substring_list_get() local
[all...]
H A 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()
318 /* Remember ovector details */ 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[ in pcre2_substitute()
[all...]
H A Dpcre2_match_data.c51 * Create a match data block given ovector size *
54 /* A minimum of 1 is imposed on the number of ovector pairs. A maximum is also
64 offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE), in pcre2_match_data_create()
127 * Get pointer to ovector *
133 return match_data->ovector; in pcre2_get_ovector_pointer()
139 * Get number of ovector slots *
169 return offsetof(pcre2_match_data, ovector) + in pcre2_get_match_data_size()
H A 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()
H A Dpcre2_jit_test.c1794 int match_start, int match_end, PCRE2_SIZE *ovector) in check_invalid_utf_result()
1809 if (ovector[0] != (PCRE2_SIZE)match_start) { in check_invalid_utf_result()
1810 printf("Pattern[%d] %s ovector[0] is unexpected (%d instead of %d)\n", 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()
1816 printf("Pattern[%d] %s ovector[1] is unexpected (%d instead of %d)\n", 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 if (check_invalid_utf_result(pattern_index, "match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
2039 if (check_invalid_utf_result(pattern_index, "partial match", result, current->match_start, current->match_end, ovector)) { in run_invalid_utf8_test()
1793 check_invalid_utf_result(int pattern_index, const char *type, int result, int match_start, int match_end, PCRE2_SIZE *ovector) check_invalid_utf_result() argument
2214 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_16(mdata); run_invalid_utf16_test() local
2401 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer_32(mdata); run_invalid_utf32_test() local
[all...]
H A Dpcre2test.c212 #define DEFAULT_OVECCOUNT 15 /* Default ovector count */
213 #define JUNK_OFFSET 0xdeadbeef /* For initializing ovector */
721 { "ovector", MOD_DAT, MOD_INT, 0, DO(oveccount) },
6193 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()
6655 * Show an entire ovector *
6660 entire ovector, t
6670 show_ovector(PCRE2_SIZE *ovector, uint32_t oveccount) show_ovector() argument
6716 PCRE2_SIZE *ovector; process_data() local
[all...]
H A Dpcre2grep.c2174 ovector: capture offsets
2183 PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) in display_output_text()
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[valu in pcre2grep_callout()
2182 display_output_text(PCRE2_SPTR string, BOOL callout, PCRE2_SPTR subject, PCRE2_SIZE *ovector, PCRE2_SIZE capture_top) display_output_text() argument
[all...]
H A Dpcre2_match.c187 #define Fovector F->ovector
280 /* The original matching code (pre 10.30) worked directly with the ovector in do_callout()
282 ovector is in the backtracking frame, it no longer needs to reserve space for in do_callout()
285 if for the extended ovector, and we ensure that the first two slots are unset in do_callout()
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()
[all...]
H A Dpcre2_intmodedep.h644 /* The real match data structure. Define ovector as large as it can ever
647 as the offset of ovector plus a pair of elements for each capturable string, so
668 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
780 positions during matching. As these are used in a vector, with the ovector item
826 allows for exactly the right size ovector for the number of capturing
836 PCRE2_SIZE ovector[131072]; /* Must be last in the structure */ member
H A Dpcre2_pattern_info.c168 *((size_t *)where) = offsetof(heapframe, ovector) + in pcre2_pattern_info()
H A Dpcre2_dfa_match.c405 ovecsize space needed for an ovector
3980 match_data->ovector, /* offset vector */ in pcre2_dfa_match()
3994 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject); in pcre2_dfa_match()
3995 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject); in pcre2_dfa_match()
H A Dpcre2_jit_compile.c3374 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector()
3386 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_R2, 0, SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector()
3417 /* Calculate the return value, which is the maximum ovector value. */ in copy_ovector()
3477 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector), SLJIT_R2, 0); in return_with_partial_match()
3483 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector) + sizeof(PCRE2_SIZE), STR_END, 0); in return_with_partial_match()
9695 PCRE2_SIZE *ovector; in do_callout_jit() local
9704 ovector = (PCRE2_SIZE*)(callout_block + 1); in do_callout_jit()
9718 /* Convert and copy the JIT offset vector to the ovector array. */ in do_callout_jit()
9720 callout_block->offset_vector = ovector; in do_callout_jit()
9722 ovector[ in do_callout_jit()
[all...]
/third_party/rust/crates/regex/bench/src/ffi/
H A Dpcre2.rs12 ovector: *mut size_t,
62 let ovector = unsafe { pcre2_get_ovector_pointer_8(match_data) }; in new()
63 if ovector.is_null() { in new()
64 panic!("could not get ovector"); 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()

Completed in 42 milliseconds