Home
last modified time | relevance | path

Searched refs:match_data (Results 1 – 20 of 20) sorted by relevance

/external/pcre/dist2/src/
Dpcre2_substring.c73 pcre2_substring_copy_byname(pcre2_match_data *match_data, PCRE2_SPTR stringname, in pcre2_substring_copy_byname() argument
78 if (match_data->matchedby == PCRE2_MATCHEDBY_DFA_INTERPRETER) in pcre2_substring_copy_byname()
80 entrysize = pcre2_substring_nametable_scan(match_data->code, stringname, in pcre2_substring_copy_byname()
87 if (n < match_data->oveccount) in pcre2_substring_copy_byname()
89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname()
90 return pcre2_substring_copy_bynumber(match_data, n, buffer, sizeptr); in pcre2_substring_copy_byname()
121 pcre2_substring_copy_bynumber(pcre2_match_data *match_data, in pcre2_substring_copy_bynumber() argument
126 rc = pcre2_substring_length_bynumber(match_data, stringnumber, &size); in pcre2_substring_copy_bynumber()
129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber()
161 pcre2_substring_get_byname(pcre2_match_data *match_data, in pcre2_substring_get_byname() argument
[all …]
Dpcre2_match_data.c93 pcre2_match_data_free(pcre2_match_data *match_data) in pcre2_match_data_free() argument
95 if (match_data != NULL) in pcre2_match_data_free()
96 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free()
106 pcre2_get_mark(pcre2_match_data *match_data) in pcre2_get_mark() argument
108 return match_data->mark; in pcre2_get_mark()
118 pcre2_get_ovector_pointer(pcre2_match_data *match_data) in pcre2_get_ovector_pointer() argument
120 return match_data->ovector; in pcre2_get_ovector_pointer()
130 pcre2_get_ovector_count(pcre2_match_data *match_data) in pcre2_get_ovector_count() argument
132 return match_data->oveccount; in pcre2_get_ovector_count()
142 pcre2_get_startchar(pcre2_match_data *match_data) in pcre2_get_startchar() argument
[all …]
Dpcre2_jit_match.c87 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_jit_match() argument
97 (void)match_data; in pcre2_jit_match()
106 uint32_t oveccount = match_data->oveccount; in pcre2_jit_match()
128 arguments.match_data = match_data; in pcre2_jit_match()
175 match_data->code = re; in pcre2_jit_match()
176 match_data->subject = subject; in pcre2_jit_match()
177 match_data->rc = rc; in pcre2_jit_match()
178 match_data->startchar = arguments.startchar_ptr - subject; in pcre2_jit_match()
179 match_data->leftchar = 0; in pcre2_jit_match()
180 match_data->rightchar = 0; in pcre2_jit_match()
[all …]
Dpcre2demo.c92 pcre2_match_data *match_data; in main() local
167 match_data = pcre2_match_data_create_from_pattern(re, NULL); in main()
175 match_data, /* block for storing the result */ in main()
190 pcre2_match_data_free(match_data); /* Release memory used for the match */ in main()
198 ovector = pcre2_get_ovector_pointer(match_data); in main()
224 pcre2_match_data_free(match_data); in main()
319 pcre2_match_data_free(match_data); /* Release the memory that was used */ in main()
366 PCRE2_SIZE startchar = pcre2_get_startchar(match_data); in main()
387 match_data, /* block for storing the result */ in main()
428 pcre2_match_data_free(match_data); in main()
[all …]
Dpcre2_substitute.c218 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_substitute() argument
255 if (match_data == NULL) in pcre2_substitute()
260 match_data = pcre2_match_data_create_from_pattern(code, gcontext); in pcre2_substitute()
261 if (match_data == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_substitute()
264 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute()
265 ovector_count = pcre2_get_ovector_count(match_data); in pcre2_substitute()
278 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->rightchar)); in pcre2_substitute()
281 match_data->leftchar = 0; in pcre2_substitute()
296 match_data->leftchar = 0; in pcre2_substitute()
311 match_data, mcontext); in pcre2_substitute()
[all …]
Dpcre2_fuzzsupport.c61 pcre2_match_data *match_data = NULL; in LLVMFuzzerTestOneInput() local
158 if (match_data == NULL) in LLVMFuzzerTestOneInput()
160 match_data = pcre2_match_data_create(32, NULL); in LLVMFuzzerTestOneInput()
161 if (match_data == NULL) in LLVMFuzzerTestOneInput()
206 match_options, match_data, match_context); in LLVMFuzzerTestOneInput()
242 (PCRE2_SIZE)match_size, 0, match_options, match_data, match_context, in LLVMFuzzerTestOneInput()
277 if (match_data != NULL) pcre2_match_data_free(match_data); in LLVMFuzzerTestOneInput()
Dpcre2_dfa_match.c3225 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_dfa_match() argument
3273 if (re == NULL || subject == NULL || workspace == NULL || match_data == NULL) in pcre2_dfa_match()
3476 match_data->rc = PRIV(valid_utf)(check_subject, in pcre2_dfa_match()
3477 length - (PCRE2_SIZE)(check_subject - subject), &(match_data->startchar)); in pcre2_dfa_match()
3478 if (match_data->rc != 0) in pcre2_dfa_match()
3480 match_data->startchar += (PCRE2_SIZE)(check_subject - subject); in pcre2_dfa_match()
3481 return match_data->rc; in pcre2_dfa_match()
3523 match_data->code = re; in pcre2_dfa_match()
3524 match_data->subject = subject; in pcre2_dfa_match()
3525 match_data->mark = NULL; in pcre2_dfa_match()
[all …]
Dpcre2_match.c5999 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_match() argument
6052 if (code == NULL || subject == NULL || match_data == NULL) in pcre2_match()
6144 match_data->rc = PRIV(valid_utf)(check_subject, in pcre2_match()
6145 length - (check_subject - subject), &(match_data->startchar)); in pcre2_match()
6146 if (match_data->rc != 0) in pcre2_match()
6148 match_data->startchar += check_subject - subject; in pcre2_match()
6149 return match_data->rc; in pcre2_match()
6171 match_data, mcontext); in pcre2_match()
6683 rc = match(start_match, mb->start_code, match_data->ovector, in pcre2_match()
6684 match_data->oveccount, re->top_bracket, frame_size, mb); in pcre2_match()
[all …]
Dpcre2test.c5831 dat_datctl.options, match_data, in check_match_limit()
5837 dat_datctl.options, match_data, PTR(dat_context)); in check_match_limit()
5843 dat_datctl.options, match_data, PTR(dat_context)); in check_match_limit()
6135 PCRE2_SUBSTRING_COPY_BYNUMBER(rc, match_data, n, copybuffer, &length); in copy_and_get()
6143 PCRE2_SUBSTRING_LENGTH_BYNUMBER(rc, match_data, n, &length2); in copy_and_get()
6190 PCRE2_SUBSTRING_COPY_BYNAME(rc, match_data, pbuffer, copybuffer, &length); in copy_and_get()
6198 PCRE2_SUBSTRING_LENGTH_BYNAME(rc, match_data, pbuffer, &length2); in copy_and_get()
6226 PCRE2_SUBSTRING_GET_BYNUMBER(rc, match_data, n, &gotbuffer, &length); in copy_and_get()
6270 PCRE2_SUBSTRING_GET_BYNAME(rc, match_data, pbuffer, &gotbuffer, &length); in copy_and_get()
6295 PCRE2_SUBSTRING_LIST_GET(rc, match_data, &stringlist, &lengths); in copy_and_get()
[all …]
Dpcre2grep.c237 static pcre2_match_data *match_data; variable
1213 if (pcre2_match(ep->compiled, (PCRE2_SPTR)path, plen, 0, 0, match_data, NULL) >= 0) in test_incexc()
1221 if (pcre2_match(ip->compiled, (PCRE2_SPTR)path, plen, 0, 0, match_data, NULL) >= 0) in test_incexc()
1720 startoffset, options, match_data, match_context); in match_patterns()
2680 oldstartoffset = pcre2_get_startchar(match_data); in pcre2grep()
2834 PCRE2_SIZE oldstartoffset = pcre2_get_startchar(match_data); in pcre2grep()
3622 match_data = pcre2_match_data_create(OFFSET_SIZE, NULL); in main()
3623 offsets = pcre2_get_ovector_pointer(match_data); in main()
4313 pcre2_match_data_free(match_data); in main()
Dpcre2_jit_compile.c182 pcre2_match_data *match_data; member
2842 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_R0), SLJIT_OFFSETOF(jit_arguments, match_data), in copy_ovector()
2923 OP1(SLJIT_MOV, SLJIT_R1, 0, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(jit_arguments, match_data)); in return_with_partial_match()
/external/pcre/pcrecpp/
Dpcrecpp.cc153 pcre2_match_data_ptr match_data; in Replace() local
154 int matches = TryMatch(*str, 0, UNANCHORED, true, match_data); in Replace()
159 if (!Rewrite(&s, rewrite, *str, match_data)) in Replace()
162 auto vec = pcre2_get_ovector_pointer(match_data.get()); in Replace()
190 pcre2_match_data_ptr match_data; in GlobalReplace() local
205 matches = TryMatch(*str, start, ANCHOR_START, false, match_data); in GlobalReplace()
233 matches = TryMatch(*str, start, UNANCHORED, true, match_data); in GlobalReplace()
237 auto vec = pcre2_get_ovector_pointer(match_data.get()); in GlobalReplace()
242 Rewrite(&out, rewrite, *str, match_data); in GlobalReplace()
260 pcre2_match_data_ptr match_data; in Extract() local
[all …]
/external/u-boot/drivers/core/
Ddevres.c99 dr_match_t match, void *match_data) in devres_find() argument
106 if (match && !match(dev, dr->data, match_data)) in devres_find()
115 dr_match_t match, void *match_data) in devres_get() argument
120 res = devres_find(dev, new_dr->release, match, match_data); in devres_get()
132 dr_match_t match, void *match_data) in devres_remove() argument
136 res = devres_find(dev, release, match, match_data); in devres_remove()
148 dr_match_t match, void *match_data) in devres_destroy() argument
152 res = devres_remove(dev, release, match, match_data); in devres_destroy()
161 dr_match_t match, void *match_data) in devres_release() argument
165 res = devres_remove(dev, release, match, match_data); in devres_release()
/external/u-boot/include/dm/
Ddevice.h629 typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data);
691 dr_match_t match, void *match_data);
707 dr_match_t match, void *match_data);
724 dr_match_t match, void *match_data);
744 dr_match_t match, void *match_data);
761 dr_match_t match, void *match_data);
820 dr_match_t match, void *match_data) in devres_find() argument
826 dr_match_t match, void *match_data) in devres_get() argument
832 dr_match_t match, void *match_data) in devres_remove() argument
838 dr_match_t match, void *match_data) in devres_destroy() argument
[all …]
/external/selinux/libselinux/src/
Dregex.c67 pcre2_match_data *match_data; member
87 (*regex)->match_data = in regex_prepare_data()
89 if (!(*regex)->match_data) { in regex_prepare_data()
141 (*regex)->match_data = in regex_load_mmap()
143 if (!(*regex)->match_data) in regex_load_mmap()
206 if (regex->match_data) in regex_data_free()
207 pcre2_match_data_free(regex->match_data); in regex_data_free()
219 partial ? PCRE2_PARTIAL_SOFT : 0, regex->match_data, NULL); in regex_match()
/external/harfbuzz_ng/src/
Dhb-ot-layout-gsubgpos.hh269 match_data (nullptr) {} in matcher_t()
280 { match_func = match_func_; match_data = match_data_; } in set_match_func()
296 return match_func (info.codepoint, *glyph_data, match_data) ? MATCH_YES : MATCH_NO; in may_match()
328 const void *match_data; member
761 const void *match_data) in would_match_input() argument
767 if (likely (!match_func (c->glyphs[i], input[i - 1], match_data))) in would_match_input()
776 const void *match_data, in match_input() argument
789 skippy_iter.set_match_func (match_func, match_data, input); in match_input()
1008 const void *match_data, in match_backtrack() argument
1015 skippy_iter.set_match_func (match_func, match_data, backtrack); in match_backtrack()
[all …]
/external/pcre/pcrecpp/include/
Dpcrecpp.h669 pcre2_match_data_ptr & match_data) const;
676 pcre2_match_data_ptr const & match_data) const;
/external/elfutils/libcpu/
Di386_disasm.c372 const uint8_t *curr = match_data; in i386_disasm()
373 const uint8_t *const match_end = match_data + sizeof (match_data); in i386_disasm()
DChangeLog128 * i386_parse.y (instrtable_out): Optimize match_data table by not
130 * i386_disasm.c (i386_disasm): Adjust reader of match_data.
/external/pcre/dist2/doc/
Dpcre2.txt215 uint32_t options, pcre2_match_data *match_data,
220 uint32_t options, pcre2_match_data *match_data,
224 void pcre2_match_data_free(pcre2_match_data *match_data);
229 PCRE2_SPTR pcre2_get_mark(pcre2_match_data *match_data);
231 uint32_t pcre2_get_ovector_count(pcre2_match_data *match_data);
233 PCRE2_SIZE *pcre2_get_ovector_pointer(pcre2_match_data *match_data);
235 PCRE2_SIZE pcre2_get_startchar(pcre2_match_data *match_data);
311 int pcre2_substring_copy_byname(pcre2_match_data *match_data,
314 int pcre2_substring_copy_bynumber(pcre2_match_data *match_data,
320 int pcre2_substring_get_byname(pcre2_match_data *match_data,
[all …]