Home
last modified time | relevance | path

Searched refs:PRIV (Results 1 – 25 of 30) sorted by path

12

/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_auto_possess.c210 return (pdata == PRIV(ucp_gentype)[prop->chartype]) == negated; in check_char_prop()
221 return (PRIV(ucp_gentype)[prop->chartype] == ucp_L || in check_char_prop()
242 return (PRIV(ucp_gentype)[prop->chartype] == ucp_L || in check_char_prop()
243 PRIV(ucp_gentype)[prop->chartype] == ucp_N || in check_char_prop()
247 p = PRIV(ucd_caseless_sets) + prop->caseset; in check_char_prop()
431 clist_src = PRIV(ucd_caseless_sets) + code[1]; in get_chr_property_list()
554 code += PRIV(OP_lengths)[c]; in compare_opcodes()
641 code += PRIV(OP_lengths)[c]; in compare_opcodes()
650 code += PRIV(OP_lengths)[c]; in compare_opcodes()
682 code += PRIV(OP_lengths)[c]; in compare_opcodes()
[all …]
H A Dpcre2_chartables.c34 const uint8_t PRIV(default_tables)[] = {
H A Dpcre2_compile.c2114 top = PRIV(utt_size); in get_ucp()
2120 r = PRIV(strcmp_c8)(name, PRIV(utt_names) + PRIV(utt)[i].name_offset); in get_ucp()
2123 *ptypeptr = PRIV(utt)[i].type; in get_ucp()
2124 *pdataptr = PRIV(utt)[i].value; in get_ucp()
4751 code += PRIV(OP_lengths)[*code]; in first_significant_code()
4766 code += PRIV(OP_lengths)[*code]; in first_significant_code()
4920 PRIV(ucd_caseless_sets) + rc, oc); in add_to_class_internal()
6732 code += PRIV(OP_lengths)[OP_CALLOUT]; in compile_branch()
8552 code += PRIV(OP_lengths)[c]; in find_recurse()
9735 patlen = PRIV(strlen)(pattern); in pcre2_compile()
[all …]
H A Dpcre2_config.c157 const char *v = PRIV(jit_get_target)(); in pcre2_config()
159 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config()
203 const char *v = PRIV(unicode_version); in pcre2_config()
208 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config()
245 strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v))); in pcre2_config()
H A Dpcre2_context.c86 PRIV(memctl_malloc)(size_t size, pcre2_memctl *memctl) in PRIV() function
133 const pcre2_compile_context PRIV(default_compile_context) = {
137 PRIV(default_tables), /* Character tables */
150 pcre2_compile_context *ccontext = PRIV(memctl_malloc)( in pcre2_compile_context_create()
153 *ccontext = PRIV(default_compile_context); in pcre2_compile_context_create()
163 const pcre2_match_context PRIV(default_match_context) = {
184 pcre2_match_context *mcontext = PRIV(memctl_malloc)( in pcre2_match_context_create()
187 *mcontext = PRIV(default_match_context); in pcre2_match_context_create()
197 const pcre2_convert_context PRIV(default_convert_context) = {
214 pcre2_convert_context *ccontext = PRIV(memctl_malloc)( in pcre2_convert_context_create()
[all …]
H A Dpcre2_convert.c1078 if (plength == PCRE2_ZERO_TERMINATED) plength = PRIV(strlen)(pattern); in pcre2_pattern_convert()
1080 (pcre2_convert_context *)(&PRIV(default_convert_context)); in pcre2_pattern_convert()
1094 rc = PRIV(valid_utf)(pattern, plength, &erroroffset); in pcre2_pattern_convert()
1146 allocated = PRIV(memctl_malloc)(sizeof(pcre2_memctl) + in pcre2_pattern_convert()
H A Dpcre2_dfa_match.c360 (PCRE2_SIZE)PRIV(OP_lengths)[OP_CALLOUT] : in do_callout()
1200 PRIV(ucp_gentype)[prop->chartype] == ucp_N; in internal_dfa_match()
1229 cp = PRIV(ucd_caseless_sets) + code[2]; in internal_dfa_match()
1458 PRIV(ucp_gentype)[prop->chartype] == ucp_N; in internal_dfa_match()
1487 cp = PRIV(ucd_caseless_sets) + code[3]; in internal_dfa_match()
1699 PRIV(ucp_gentype)[prop->chartype] == ucp_N; in internal_dfa_match()
1728 cp = PRIV(ucd_caseless_sets) + code[3]; in internal_dfa_match()
1965 PRIV(ucp_gentype)[prop->chartype] == ucp_N; in internal_dfa_match()
3293 length = PRIV(strlen)(subject); in pcre2_dfa_match()
3393 mb->heap_limit = PRIV(default_match_context).heap_limit; in pcre2_dfa_match()
[all …]
H A Dpcre2_extuni.c60 PRIV(extuni)(uint32_t c, PCRE2_SPTR eptr, PCRE2_SPTR start_subject, in PRIV() function
92 PRIV(extuni)(uint32_t c, PCRE2_SPTR eptr, PCRE2_SPTR start_subject, in PRIV() function
103 if ((PRIV(ucp_gbtable)[lgb] & (1u << rgb)) == 0) break; in PRIV()
H A Dpcre2_find_bracket.c70 PRIV(find_bracket)(PCRE2_SPTR code, BOOL utf, int number) in PRIV() function
91 code += PRIV(OP_lengths)[c]; in PRIV()
101 code += PRIV(OP_lengths)[c]; in PRIV()
144 code += PRIV(OP_lengths)[c]; in PRIV()
H A Dpcre2_internal.h176 #ifndef PRIV
177 #define PRIV(name) _pcre2_##name macro
198 #define memmove(a, b, c) PRIV(memmove)(a, b, c)
1807 #define REAL_GET_UCD(ch) (PRIV(ucd_records) + \
1808 PRIV(ucd_stage2)[PRIV(ucd_stage1)[(int)(ch) / UCD_BLOCK_SIZE] * \
1813 PRIV(dummy_ucd_record) : REAL_GET_UCD(ch))
1862 extern const int PRIV(utf8_table1)[];
1864 extern const int PRIV(utf8_table2)[];
1865 extern const int PRIV(utf8_table3)[];
1866 extern const uint8_t PRIV(utf8_table4)[];
[all …]
H A Dpcre2_intmodedep.h291 #define GET_EXTRALEN(c) (PRIV(utf8_table4)[(c) & 0x3fu])
358 PRIV(ord2utf)(c,p) : (*p = c, 1))
464 PRIV(ord2utf)(c,p) : (*p = c, 1))
H A Dpcre2_jit_compile.c961 return cc + PRIV(OP_lengths)[*cc]; in next_opcode()
1019 cc += PRIV(OP_lengths)[*cc]; in next_opcode()
1039 return cc + PRIV(OP_lengths)[*cc] - 1; in next_opcode()
7401 other_cases = PRIV(ucd_caseless_sets) + cc[1]; in compile_xclass_matchingpath()
7737 c = PRIV(ucp_typerange)[(int)cc[1] * 2]; in compile_xclass_matchingpath()
8239 if ((PRIV(ucp_gbtable)[lgb] & (1 << rgb)) == 0) in do_extuni_utf()
8307 if ((PRIV(ucp_gbtable)[lgb] & (1 << rgb)) == 0) in do_extuni_utf_invalid()
8375 if ((PRIV(ucp_gbtable)[lgb] & (1 << rgb)) == 0) in do_extuni_no_utf()
9536 cc += PRIV(OP_lengths)[*cc]; in assert_needs_str_ptr_saving()
10050 if (PRIV(script_run)(ptr, endptr, FALSE)) in do_script_run()
[all …]
H A Dpcre2_jit_misc.c53 PRIV(jit_free_rodata)(void *current, void *allocator_data) in PRIV() function
78 PRIV(jit_free)(void *executable_jit, pcre2_memctl *memctl) in PRIV() function
93 PRIV(jit_free_rodata)(functions->read_only_data_heads[i], allocator_data); in PRIV()
145 jit_stack = PRIV(memctl_malloc)(sizeof(pcre2_real_jit_stack), (pcre2_memctl *)gcontext); in pcre2_jit_stack_create()
205 PRIV(jit_get_target)(void) in PRIV() function
220 PRIV(jit_get_size)(void *executable_jit) in PRIV() function
H A Dpcre2_match.c786 Fecode += PRIV(OP_lengths)[*Fecode]; in match()
1225 Loclength = PRIV(ord2utf)(othercase, Foccu); in match()
2487 cp = PRIV(ucd_caseless_sets) + Fecode[2]; in match()
2772 cp = PRIV(ucd_caseless_sets) + Lpropvalue; in match()
5069 Fecode += PRIV(OP_lengths)[*Fecode]; in match()
5939 RMATCH(Fecode + PRIV(OP_lengths)[*Fecode], RM13); in match()
5952 RMATCH(Fecode + PRIV(OP_lengths)[*Fecode], RM14); in match()
5965 RMATCH(Fecode + PRIV(OP_lengths)[*Fecode], RM16); in match()
6002 RMATCH(Fecode + PRIV(OP_lengths)[*Fecode], RM18); in match()
6176 length = PRIV(strlen)(subject); in pcre2_match()
[all …]
H A Dpcre2_match_data.c61 yield = PRIV(memctl_malloc)( in pcre2_match_data_create()
H A Dpcre2_newline.c79 PRIV(is_newline)(PCRE2_SPTR ptr, uint32_t type, PCRE2_SPTR endptr, in PRIV() function
169 PRIV(was_newline)(PCRE2_SPTR ptr, uint32_t type, PCRE2_SPTR startptr, in PRIV() function
H A Dpcre2_ord2utf.c59 PRIV(ord2utf)(uint32_t cvalue, PCRE2_UCHAR *buffer) in PRIV() function
81 PRIV(ord2utf)(uint32_t cvalue, PCRE2_UCHAR *buffer) in PRIV() function
87 for (i = 0; i < PRIV(utf8_table1_size); i++) in PRIV()
88 if ((int)cvalue <= PRIV(utf8_table1)[i]) break; in PRIV()
95 *buffer = PRIV(utf8_table2)[i] | cvalue; in PRIV()
H A Dpcre2_pattern_info.c192 PRIV(jit_get_size)(re->executable_jit) : 0; in pcre2_pattern_info()
361 cc += PRIV(OP_lengths)[*cc]; in pcre2_callout_enumerate()
380 cc += PRIV(OP_lengths)[*cc]; in pcre2_callout_enumerate()
397 cc += PRIV(OP_lengths)[*cc] + cc[1]; in pcre2_callout_enumerate()
409 cc += PRIV(OP_lengths)[*cc]; in pcre2_callout_enumerate()
426 cc += PRIV(OP_lengths)[*cc]; in pcre2_callout_enumerate()
H A Dpcre2_printint.c143 int a = PRIV(utf8_table4)[c & 0x3f]; /* Number of additional bytes */ in print_char()
145 c = (c & PRIV(utf8_table3)[a]) << s; in print_char()
240 for (i = PRIV(utt_size) - 1; i >= 0; i--) in get_ucpname()
242 if (ptype == PRIV(utt)[i].type && pvalue == PRIV(utt)[i].value) break; in get_ucpname()
244 return (i >= 0)? PRIV(utt_names) + PRIV(utt)[i].name_offset : "??"; in get_ucpname()
282 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
622 for (i = 0; PRIV(callout_start_delims)[i] != 0; i++) in pcre2_printint()
623 if (c == PRIV(callout_start_delims)[i]) in pcre2_printint()
625 c = PRIV(callout_end_delims)[i]; in pcre2_printint()
H A Dpcre2_script_run.c85 PRIV(script_run)(PCRE2_SPTR ptr, PCRE2_SPTR endptr, BOOL utf) in PRIV() function
258 const uint8_t *list = PRIV(ucd_script_sets) - scriptx; in PRIV()
263 require_list = PRIV(ucd_script_sets) - scriptx; in PRIV()
403 if (c <= PRIV(ucd_digit_sets)[1]) digitset = 1; else in PRIV()
407 int top = PRIV(ucd_digit_sets)[0]; in PRIV()
416 if (c <= PRIV(ucd_digit_sets)[mid]) top = mid; else bot = mid; in PRIV()
H A Dpcre2_serialize.c85 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_encode()
168 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_decode()
215 dst_re = (pcre2_real_code *)PRIV(memctl_malloc)(blocksize, in pcre2_serialize_decode()
H A Dpcre2_string_utils.c63 PRIV(memmove)(void *d, const void *s, size_t n) in PRIV() function
102 PRIV(strcmp)(PCRE2_SPTR str1, PCRE2_SPTR str2) in PRIV() function
130 PRIV(strcmp_c8)(PCRE2_SPTR str1, const char *str2) in PRIV() function
157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV() function
186 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV() function
209 PRIV(strlen)(PCRE2_SPTR str) in PRIV() function
229 PRIV(strcpy_c8)(PCRE2_UCHAR *str1, const char *str2) in PRIV() function
H A Dpcre2_study.c276 cc += PRIV(OP_lengths)[*cc]; in find_minlength()
289 cc += PRIV(OP_lengths)[*cc]; in find_minlength()
400 cc += PRIV(OP_lengths)[op]; in find_minlength()
408 cc += PRIV(OP_lengths)[op]; in find_minlength()
422 cc += PRIV(OP_lengths)[OP_CLASS]; in find_minlength()
424 cc += PRIV(OP_lengths)[OP_CLASS]; in find_minlength()
723 cc += PRIV(OP_lengths)[op]; in find_minlength()
748 cc += PRIV(OP_lengths)[op]; in find_minlength()
824 (void)PRIV(ord2utf)(c, buff); in set_table_bit()
878 (void)PRIV(ord2utf)(c, buff); in set_type_bits()
[all …]
H A Dpcre2_substitute.c132 erc = PRIV(check_escape)(&ptr, ptrend, &ch, &errorcode, in find_text_end()
317 if (length == PCRE2_ZERO_TERMINATED) length = PRIV(strlen)(subject); in pcre2_substitute()
318 if (rlength == PCRE2_ZERO_TERMINATED) rlength = PRIV(strlen)(replacement); in pcre2_substitute()
326 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->startchar)); in pcre2_substitute()
639 if (PRIV(strcmp_c8)(name, STRING_MARK) == 0) in pcre2_substitute()
765 if (PRIV(ucp_gentype)[type] == ucp_L && in pcre2_substitute()
781 if (utf) chlen = PRIV(ord2utf)(ch, temp); else in pcre2_substitute()
831 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
867 if (PRIV(ucp_gentype)[type] == ucp_L && in pcre2_substitute()
883 if (utf) chlen = PRIV(ord2utf)(ch, temp); else in pcre2_substitute()
H A Dpcre2_substring.c217 yield = PRIV(memctl_malloc)(sizeof(pcre2_memctl) + in pcre2_substring_get_bynumber()
397 memp = PRIV(memctl_malloc)(size, (pcre2_memctl *)match_data); in pcre2_substring_list_get()
492 int c = PRIV(strcmp)(stringname, entry + IMM2_SIZE); in pcre2_substring_nametable_scan()
502 if (PRIV(strcmp)(stringname, (first - entrysize + IMM2_SIZE)) != 0) break; in pcre2_substring_nametable_scan()
507 if (PRIV(strcmp)(stringname, (last + entrysize + IMM2_SIZE)) != 0) break; in pcre2_substring_nametable_scan()

Completed in 174 milliseconds

12