Home
last modified time | relevance | path

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

/external/pcre/dist2/src/
Dpcre2_match_data.c94 pcre2_match_data_free(pcre2_match_data *match_data) in pcre2_match_data_free() argument
96 if (match_data != NULL) in pcre2_match_data_free()
98 if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) in pcre2_match_data_free()
99 match_data->memctl.free((void *)match_data->subject, in pcre2_match_data_free()
100 match_data->memctl.memory_data); in pcre2_match_data_free()
101 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free()
112 pcre2_get_mark(pcre2_match_data *match_data) in pcre2_get_mark() argument
114 return match_data->mark; in pcre2_get_mark()
124 pcre2_get_ovector_pointer(pcre2_match_data *match_data) in pcre2_get_ovector_pointer() argument
126 return match_data->ovector; in pcre2_get_ovector_pointer()
[all …]
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_jit_match.c86 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_jit_match() argument
96 (void)match_data; in pcre2_jit_match()
105 uint32_t oveccount = match_data->oveccount; in pcre2_jit_match()
127 arguments.match_data = match_data; in pcre2_jit_match()
172 match_data->code = re; in pcre2_jit_match()
173 match_data->subject = (rc >= 0 || rc == PCRE2_ERROR_PARTIAL)? subject : NULL; in pcre2_jit_match()
174 match_data->rc = rc; in pcre2_jit_match()
175 match_data->startchar = arguments.startchar_ptr - subject; in pcre2_jit_match()
176 match_data->leftchar = 0; in pcre2_jit_match()
177 match_data->rightchar = 0; in pcre2_jit_match()
[all …]
Dpcre2demo.c92 pcre2_match_data *match_data; in main() local
171 match_data = pcre2_match_data_create_from_pattern(re, NULL); in main()
181 match_data, /* block for storing the result */ in main()
196 pcre2_match_data_free(match_data); /* Release memory used for the match */ in main()
204 ovector = pcre2_get_ovector_pointer(match_data); in main()
230 pcre2_match_data_free(match_data); in main()
325 pcre2_match_data_free(match_data); /* Release the memory that was used */ in main()
372 PCRE2_SIZE startchar = pcre2_get_startchar(match_data); in main()
393 match_data, /* block for storing the result */ in main()
434 pcre2_match_data_free(match_data); in main()
[all …]
Dpcre2_substitute.c221 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_substitute() argument
276 if (match_data == NULL) in pcre2_substitute()
283 match_data = internal_match_data = in pcre2_substitute()
293 int pairs = (code->top_bracket + 1 < match_data->oveccount)? in pcre2_substitute()
294 code->top_bracket + 1 : match_data->oveccount; in pcre2_substitute()
295 internal_match_data = pcre2_match_data_create(match_data->oveccount, in pcre2_substitute()
298 memcpy(internal_match_data, match_data, offsetof(pcre2_match_data, ovector) in pcre2_substitute()
300 match_data = internal_match_data; in pcre2_substitute()
305 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute()
306 ovector_count = pcre2_get_ovector_count(match_data); 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_match.c6103 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_match() argument
6184 if (code == NULL || subject == NULL || match_data == NULL) in pcre2_match()
6254 if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) in pcre2_match()
6256 match_data->memctl.free((void *)match_data->subject, in pcre2_match()
6257 match_data->memctl.memory_data); in pcre2_match()
6258 match_data->flags &= ~PCRE2_MD_COPIED_SUBJECT; in pcre2_match()
6260 match_data->subject = NULL; in pcre2_match()
6264 match_data->startchar = 0; in pcre2_match()
6331 match_data->rc = PRIV(valid_utf)(start_match, in pcre2_match()
6332 length - (start_match - subject), &(match_data->startchar)); in pcre2_match()
[all …]
Dpcre2_dfa_match.c3241 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_dfa_match() argument
3300 if (re == NULL || subject == NULL || workspace == NULL || match_data == NULL) in pcre2_dfa_match()
3510 match_data->rc = PRIV(valid_utf)(check_subject, in pcre2_dfa_match()
3511 length - (PCRE2_SIZE)(check_subject - subject), &(match_data->startchar)); in pcre2_dfa_match()
3512 if (match_data->rc != 0) in pcre2_dfa_match()
3514 match_data->startchar += (PCRE2_SIZE)(check_subject - subject); in pcre2_dfa_match()
3515 return match_data->rc; in pcre2_dfa_match()
3569 if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) in pcre2_dfa_match()
3571 match_data->memctl.free((void *)match_data->subject, in pcre2_dfa_match()
3572 match_data->memctl.memory_data); in pcre2_dfa_match()
[all …]
Dpcre2test.c6027 dat_datctl.options, match_data, in check_match_limit()
6033 dat_datctl.options, match_data, PTR(dat_context)); in check_match_limit()
6039 dat_datctl.options, match_data, PTR(dat_context)); in check_match_limit()
6386 PCRE2_SUBSTRING_COPY_BYNUMBER(rc, match_data, n, copybuffer, &length); in copy_and_get()
6394 PCRE2_SUBSTRING_LENGTH_BYNUMBER(rc, match_data, n, &length2); in copy_and_get()
6441 PCRE2_SUBSTRING_COPY_BYNAME(rc, match_data, pbuffer, copybuffer, &length); in copy_and_get()
6449 PCRE2_SUBSTRING_LENGTH_BYNAME(rc, match_data, pbuffer, &length2); in copy_and_get()
6477 PCRE2_SUBSTRING_GET_BYNUMBER(rc, match_data, n, &gotbuffer, &length); in copy_and_get()
6521 PCRE2_SUBSTRING_GET_BYNAME(rc, match_data, pbuffer, &gotbuffer, &length); in copy_and_get()
6546 PCRE2_SUBSTRING_LIST_GET(rc, match_data, &stringlist, &lengths); in copy_and_get()
[all …]
Dpcre2grep.c269 static pcre2_match_data *match_data; variable
1287 if (pcre2_match(ep->compiled, (PCRE2_SPTR)path, plen, 0, 0, match_data, NULL) >= 0) in test_incexc()
1295 if (pcre2_match(ip->compiled, (PCRE2_SPTR)path, plen, 0, 0, match_data, NULL) >= 0) in test_incexc()
1843 startoffset, options, match_data, match_context); in match_patterns()
1855 PCRE2_SIZE startchar = pcre2_get_startchar(match_data); in match_patterns()
2861 oldstartoffset = pcre2_get_startchar(match_data); in pcre2grep()
3018 PCRE2_SIZE oldstartoffset = pcre2_get_startchar(match_data); in pcre2grep()
4186 match_data = pcre2_match_data_create(offset_size, NULL); in main()
4187 offsets = pcre2_get_ovector_pointer(match_data); in main()
4526 pcre2_match_data_free(match_data); in main()
Dpcre2_jit_compile.c183 pcre2_match_data *match_data; member
3300 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_R0), SLJIT_OFFSETOF(jit_arguments, match_data), in copy_ovector()
3306 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_MEM1(ARGUMENTS), SLJIT_OFFSETOF(jit_arguments, match_data)); in copy_ovector()
3396 OP1(SLJIT_MOV, SLJIT_R1, 0, SLJIT_MEM1(arguments_reg), SLJIT_OFFSETOF(jit_arguments, match_data)); in return_with_partial_match()
/external/llvm-project/lldb/source/DataFormatters/
DLanguageCategory.cpp34 bool LanguageCategory::Get(FormattersMatchData &match_data, in Get() argument
42 if (match_data.GetTypeForCache()) { in Get()
43 if (m_format_cache.Get(match_data.GetTypeForCache(), retval_sp)) in Get()
47 ValueObject &valobj(match_data.GetValueObject()); in Get()
49 match_data.GetMatchesVector(), retval_sp); in Get()
50 if (match_data.GetTypeForCache() && in Get()
52 m_format_cache.Set(match_data.GetTypeForCache(), retval_sp); in Get()
91 FormattersMatchData &match_data, in GetHardcoded() argument
96 ValueObject &valobj(match_data.GetValueObject()); in GetHardcoded()
97 lldb::DynamicValueType use_dynamic(match_data.GetDynamicValueType()); in GetHardcoded()
DFormatManager.cpp599 ImplSP FormatManager::GetHardcoded(FormattersMatchData &match_data) { in GetHardcoded() argument
601 for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) { in GetHardcoded()
603 if (lang_category->GetHardcoded(*this, match_data, retval_sp)) in GetHardcoded()
613 FormattersMatchData match_data(valobj, use_dynamic); in Get() local
614 if (ImplSP retval_sp = GetCached<ImplSP>(match_data)) in Get()
620 for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) { in Get()
623 if (lang_category->Get(match_data, retval_sp)) in Get()
634 return GetHardcoded<ImplSP>(match_data); in Get()
638 ImplSP FormatManager::GetCached(FormattersMatchData &match_data) { in GetCached() argument
641 if (match_data.GetTypeForCache()) { in GetCached()
[all …]
DTypeCategoryMap.cpp172 void TypeCategoryMap::Get(FormattersMatchData &match_data, ImplSP &retval) { in Get() argument
180 for (auto match : match_data.GetMatchesVector()) { in Get()
198 match_data.GetValueObject().GetObjectRuntimeLanguage(), in Get()
199 match_data.GetMatchesVector(), current_format)) in Get()
211 TypeCategoryMap::Get<lldb::TypeFormatImplSP>(FormattersMatchData &match_data,
214 TypeCategoryMap::Get<lldb::TypeSummaryImplSP>(FormattersMatchData &match_data,
217 FormattersMatchData &match_data, lldb::SyntheticChildrenSP &retval);
/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/llvm-project/lldb/include/lldb/DataFormatters/
DLanguageCategory.h28 bool Get(FormattersMatchData &match_data, ImplSP &format_sp);
30 bool GetHardcoded(FormatManager &fmt_mgr, FormattersMatchData &match_data,
DFormatManager.h199 template <typename ImplSP> ImplSP GetCached(FormattersMatchData &match_data);
/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
768 const void *match_data) in would_match_input() argument
774 if (likely (!match_func (c->glyphs[i], input[i - 1], match_data))) in would_match_input()
783 const void *match_data, in match_input() argument
796 skippy_iter.set_match_func (match_func, match_data, input); in match_input()
1015 const void *match_data, in match_backtrack() argument
1022 skippy_iter.set_match_func (match_func, match_data, backtrack); in match_backtrack()
[all …]
/external/igt-gpu-tools/lib/
Dintel_chipset.c97 match.match_data = 0; in intel_get_pci_device()
Dintel_device_info.c429 cache = (void *)intel_device_match[i].match_data; in intel_get_device_info()
/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()
DChangeLog178 * i386_parse.y (instrtable_out): Optimize match_data table by not
180 * 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);
315 int pcre2_substring_copy_byname(pcre2_match_data *match_data,
318 int pcre2_substring_copy_bynumber(pcre2_match_data *match_data,
324 int pcre2_substring_get_byname(pcre2_match_data *match_data,
[all …]
/external/libabigail/tests/data/test-annotate/
Dtest17-pr19027.so.abi11658 <!-- void* OT::hb_apply_context_t::matcher_t::match_data -->
11659 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
20578 <!-- void* OT::hb_apply_context_t::matcher_t::match_data -->
20579 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
23965 <!-- void* OT::ContextApplyLookupContext::match_data -->
23966 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
24122 <!-- void* OT::ChainContextApplyLookupContext::match_data[3] -->
24123 …<var-decl name='match_data' type-id='type-id-1387' visibility='default' filepath='/tmp/legendre/sp…
/external/libabigail/tests/data/test-read-dwarf/
Dtest17-pr19027.so.abi7718 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
13295 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
15609 …<var-decl name='match_data' type-id='type-id-33' visibility='default' filepath='/tmp/legendre/spac…
15721 …<var-decl name='match_data' type-id='type-id-1387' visibility='default' filepath='/tmp/legendre/sp…