Home
last modified time | relevance | path

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

12

/external/pcre/dist2/src/
Dpcre2_intmodedep.h633 PCRE2_SPTR subject; /* The subject that was matched */
634 PCRE2_SPTR mark; /* Pointer to last mark */
655 PCRE2_SPTR group;
661 PCRE2_SPTR group;
677 PCRE2_SPTR name; /* Points to the name in the pattern */
692 PCRE2_SPTR start_workspace; /* The start of working space */
693 PCRE2_SPTR start_code; /* The start of the compiled code */
694 PCRE2_SPTR start_pattern; /* The start of the pattern */
695 PCRE2_SPTR end_pattern; /* The end of the pattern */
696 PCRE2_SPTR nestptr[2]; /* Pointer(s) saved for string substitution */
[all …]
Dpcre2_substring.c73 pcre2_substring_copy_byname(pcre2_match_data *match_data, PCRE2_SPTR stringname, in pcre2_substring_copy_byname()
76 PCRE2_SPTR first, last, entry; in pcre2_substring_copy_byname()
162 PCRE2_SPTR stringname, PCRE2_UCHAR **stringptr, PCRE2_SIZE *sizeptr) in pcre2_substring_get_byname()
164 PCRE2_SPTR first, last, entry; in pcre2_substring_get_byname()
269 PCRE2_SPTR stringname, PCRE2_SIZE *sizeptr) in pcre2_substring_length_byname()
271 PCRE2_SPTR first, last, entry; in pcre2_substring_length_byname()
440 pcre2_substring_list_free(PCRE2_SPTR *list) in pcre2_substring_list_free()
475 pcre2_substring_nametable_scan(const pcre2_code *code, PCRE2_SPTR stringname, in pcre2_substring_nametable_scan()
476 PCRE2_SPTR *firstptr, PCRE2_SPTR *lastptr) in pcre2_substring_nametable_scan()
481 PCRE2_SPTR nametable = (PCRE2_SPTR)((char *)code + sizeof(pcre2_real_code)); in pcre2_substring_nametable_scan()
[all …]
Dpcre2_string_utils.c66 PRIV(strcmp)(PCRE2_SPTR str1, PCRE2_SPTR str2) in PRIV()
94 PRIV(strcmp_c8)(PCRE2_SPTR str1, const char *str2) in PRIV()
121 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV()
150 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV()
173 PRIV(strlen)(PCRE2_SPTR str) in PRIV()
Dpcre2demo.c72 PCRE2_SPTR pattern; /* PCRE2_SPTR is a pointer to unsigned code units of */ in main()
73 PCRE2_SPTR subject; /* the appropriate width (in this case, 8 bits). */ in main()
74 PCRE2_SPTR name_table; in main()
127 pattern = (PCRE2_SPTR)argv[i]; in main()
128 subject = (PCRE2_SPTR)argv[i+1]; in main()
219 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main()
242 PCRE2_SPTR tabptr; in main()
410 PCRE2_SPTR substring_start = subject + ovector[2*i]; in main()
417 PCRE2_SPTR tabptr = name_table; in main()
Dpcre2_substitute.c78 find_text_end(const pcre2_code *code, PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, in find_text_end()
84 PCRE2_SPTR ptr = *ptrptr; in find_text_end()
215 pcre2_substitute(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length, in pcre2_substitute()
217 pcre2_match_context *mcontext, PCRE2_SPTR replacement, PCRE2_SIZE rlength, in pcre2_substitute()
234 PCRE2_SPTR ptr; in pcre2_substitute()
235 PCRE2_SPTR repend; in pcre2_substitute()
297 PCRE2_SPTR ptrstack[PTR_STACK_SIZE]; in pcre2_substitute()
422 PCRE2_SPTR text1_start = NULL; in pcre2_substitute()
423 PCRE2_SPTR text1_end = NULL; in pcre2_substitute()
424 PCRE2_SPTR text2_start = NULL; in pcre2_substitute()
[all …]
Dpcre2_newline.c79 PRIV(is_newline)(PCRE2_SPTR ptr, uint32_t type, PCRE2_SPTR endptr, in PRIV()
169 PRIV(was_newline)(PCRE2_SPTR ptr, uint32_t type, PCRE2_SPTR startptr, in PRIV()
Dpcre2_dfa_match.c367 PCRE2_SPTR this_start_code, in internal_dfa_match()
368 PCRE2_SPTR current_subject, in internal_dfa_match()
380 PCRE2_SPTR ptr; in internal_dfa_match()
381 PCRE2_SPTR end_code; in internal_dfa_match()
382 PCRE2_SPTR first_op; in internal_dfa_match()
391 PCRE2_SPTR start_subject = mb->start_subject; in internal_dfa_match()
392 PCRE2_SPTR end_subject = mb->end_subject; in internal_dfa_match()
393 PCRE2_SPTR start_code = mb->start_code; in internal_dfa_match()
595 PCRE2_SPTR code; in internal_dfa_match()
953 PCRE2_SPTR temp = ptr - 1; in internal_dfa_match()
[all …]
Dpcre2_internal.h141 #undef PCRE2_SPTR
142 #define PCRE2_SPTR CUSTOM_SUBJECT_PTR macro
1936 extern int _pcre2_check_escape(PCRE2_SPTR *, PCRE2_SPTR, uint32_t *,
1938 extern PCRE2_SPTR _pcre2_find_bracket(PCRE2_SPTR, BOOL, int);
1939 extern BOOL _pcre2_is_newline(PCRE2_SPTR, uint32_t, PCRE2_SPTR,
1947 extern int _pcre2_strcmp(PCRE2_SPTR, PCRE2_SPTR);
1948 extern int _pcre2_strcmp_c8(PCRE2_SPTR, const char *);
1950 extern PCRE2_SIZE _pcre2_strlen(PCRE2_SPTR);
1951 extern int _pcre2_strncmp(PCRE2_SPTR, PCRE2_SPTR, size_t);
1952 extern int _pcre2_strncmp_c8(PCRE2_SPTR, const char *, size_t);
[all …]
Dpcre2.h.in357 PCRE2_SPTR mark; /* Pointer to current mark or NULL */ \
358 PCRE2_SPTR subject; /* The subject being matched */ \
367 PCRE2_SPTR callout_string; /* String compiled into pattern */ \
379 PCRE2_SPTR callout_string; /* String compiled into pattern */ \
444 pcre2_code *pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, \
471 PCRE2_EXP_DECL int pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, \
476 PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
479 PCRE2_EXP_DECL PCRE2_SPTR pcre2_get_mark(pcre2_match_data *); \
489 PCRE2_SPTR, PCRE2_UCHAR *, PCRE2_SIZE *); \
494 PCRE2_SPTR, PCRE2_UCHAR **, PCRE2_SIZE *); \
[all …]
Dpcre2.h.generic357 PCRE2_SPTR mark; /* Pointer to current mark or NULL */ \
358 PCRE2_SPTR subject; /* The subject being matched */ \
367 PCRE2_SPTR callout_string; /* String compiled into pattern */ \
379 PCRE2_SPTR callout_string; /* String compiled into pattern */ \
444 pcre2_code *pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, \
471 PCRE2_EXP_DECL int pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, \
476 PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
479 PCRE2_EXP_DECL PCRE2_SPTR pcre2_get_mark(pcre2_match_data *); \
489 PCRE2_SPTR, PCRE2_UCHAR *, PCRE2_SIZE *); \
494 PCRE2_SPTR, PCRE2_UCHAR **, PCRE2_SIZE *); \
[all …]
Dpcre2_printint.c92 print_char(FILE *f, PCRE2_SPTR ptr, BOOL utf) in print_char()
205 print_custring(FILE *f, PCRE2_SPTR ptr) in print_custring()
215 print_custring_bylen(FILE *f, PCRE2_SPTR ptr, PCRE2_UCHAR len) in print_custring_bylen()
272 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) in print_prop()
310 PCRE2_SPTR codestart, nametable, code; in pcre2_printint()
314 nametable = (PCRE2_SPTR)((uint8_t *)re + sizeof(pcre2_real_code)); in pcre2_printint()
319 PCRE2_SPTR ccode; in pcre2_printint()
415 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
432 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
602 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
Dpcre2_pattern_info.c103 return sizeof(PCRE2_SPTR); in pcre2_pattern_info()
211 *((PCRE2_SPTR *)where) = (PCRE2_SPTR)((char *)re + sizeof(pcre2_real_code)); in pcre2_pattern_info()
256 PCRE2_SPTR cc; in pcre2_callout_enumerate()
273 cc = (PCRE2_SPTR)((uint8_t *)re + sizeof(pcre2_real_code)) in pcre2_callout_enumerate()
Dpcre2_compile.c89 compile_regex(uint32_t, PCRE2_UCHAR **, PCRE2_SPTR *, int *, BOOL, BOOL,
498 static PCRE2_SPTR substitutes[] = {
554 static PCRE2_SPTR posix_substitutes[] = {
816 auto_callout(PCRE2_UCHAR *code, PCRE2_SPTR ptr, compile_block *cb) in auto_callout()
844 complete_callout(PCRE2_UCHAR *previous_callout, PCRE2_SPTR ptr, in complete_callout()
1290 first_significant_code(PCRE2_SPTR code, BOOL skipassert) in first_significant_code()
1368 could_be_empty_branch(PCRE2_SPTR code, PCRE2_SPTR endcode, BOOL utf, in could_be_empty_branch()
1407 PCRE2_SPTR ccode; in could_be_empty_branch()
1431 PCRE2_SPTR scode, endgroup; in could_be_empty_branch()
1766 is_counted_repeat(PCRE2_SPTR p) in is_counted_repeat()
[all …]
Dpcre2_valid_utf.c63 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV()
94 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV()
96 register PCRE2_SPTR p; in PRIV()
Dpcre2_match.c145 match_ref(PCRE2_SIZE offset, PCRE2_SIZE offset_top, register PCRE2_SPTR eptr, in match_ref()
152 register PCRE2_SPTR p; in match_ref()
154 PCRE2_SPTR eptr_start = eptr; in match_ref()
188 PCRE2_SPTR endptr = p + length; in match_ref()
356 PCRE2_SPTR Xcharptr;
358 PCRE2_SPTR Xeptr;
359 PCRE2_SPTR Xecode;
360 PCRE2_SPTR Xmstart;
361 PCRE2_SPTR Xcallpat;
362 PCRE2_SPTR Xdata;
[all …]
Dpcre2_jit_compile.c179 PCRE2_SPTR str;
180 PCRE2_SPTR begin;
181 PCRE2_SPTR end;
183 PCRE2_SPTR startchar_ptr;
245 PCRE2_SPTR cc;
350 PCRE2_SPTR start;
385 PCRE2_SPTR fast_forward_bc_ptr;
422 PCRE2_SPTR name_table;
580 static PCRE2_SPTR bracketend(PCRE2_SPTR cc) in bracketend()
589 static int no_alternatives(PCRE2_SPTR cc) in no_alternatives()
[all …]
Dpcre2_auto_possess.c306 static PCRE2_SPTR
307 get_chr_property_list(PCRE2_SPTR code, BOOL utf, const uint8_t *fcc, in get_chr_property_list()
312 PCRE2_SPTR end; in get_chr_property_list()
515 compare_opcodes(PCRE2_SPTR code, BOOL utf, const compile_block *cb, in compare_opcodes()
516 const uint32_t *base_list, PCRE2_SPTR base_end, int *rec_limit) in compare_opcodes()
523 PCRE2_SPTR next_code; in compare_opcodes()
525 PCRE2_SPTR xclass_flags; in compare_opcodes()
1065 PCRE2_SPTR end; in PRIV()
Dpcre2_find_bracket.c69 PCRE2_SPTR
70 PRIV(find_bracket)(PCRE2_SPTR code, BOOL utf, int number) in PRIV()
Dpcre2_study.c92 find_minlength(const pcre2_real_code *re, PCRE2_SPTR code, in find_minlength()
93 PCRE2_SPTR startcode, BOOL utf, recurse_check *recurses, int *countptr) in find_minlength()
717 static PCRE2_SPTR
718 set_table_bit(pcre2_real_code *re, PCRE2_SPTR p, BOOL caseless, BOOL utf) in set_table_bit()
874 set_start_bits(pcre2_real_code *re, PCRE2_SPTR code, BOOL utf) in set_start_bits()
888 PCRE2_SPTR tcode = code + 1 + LINK_SIZE; in set_start_bits()
Dpcre2posix.c246 preg->re_pcre2_code = pcre2_compile((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, in regcomp()
331 (PCRE2_SPTR)string + so, (eo - so), 0, options, md, NULL); in regexec()
Dpcre2_match_data.c105 PCRE2_EXP_DEFN PCRE2_SPTR PCRE2_CALL_CONVENTION
Dpcre2_jit_match.c86 pcre2_jit_match(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length, in pcre2_jit_match()
Dpcre2_xclass.c69 PRIV(xclass)(uint32_t c, PCRE2_SPTR data, BOOL utf) in PRIV()
/external/selinux/libselinux/src/
Dregex.c81 (PCRE2_SPTR)pattern_string, PCRE2_ZERO_TERMINATED, PCRE2_DOTALL, in regex_prepare_data()
136 (PCRE2_SPTR)mmap_area->next_addr, in regex_load_mmap()
218 regex->regex, (PCRE2_SPTR)subject, PCRE2_ZERO_TERMINATED, 0, in regex_match()
/external/pcre/pcrecpp/
Dpcrecpp.cc130 re = pcre2_compile(reinterpret_cast<PCRE2_SPTR>(pattern_.c_str()), in Compile()
139 re = pcre2_compile(reinterpret_cast<PCRE2_SPTR>(wrapped.c_str()), in Compile()
347 re, reinterpret_cast<PCRE2_SPTR>((text.empty()) ? "" : text.data()), in TryMatch()

12