/third_party/pcre2/pcre2/src/ |
D | pcre2_ucd.c | 71 const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0,0,0 }}; 72 const uint16_t PRIV(ucd_stage1)[] = {0}; 73 const uint16_t PRIV(ucd_stage2)[] = {0}; 74 const uint32_t PRIV(ucd_caseless_sets)[] = {0}; 79 const char *PRIV(unicode_version) = "14.0.0"; 100 const ucd_record PRIV(dummy_ucd_record)[] = {{ 114 const uint32_t PRIV(ucd_caseless_sets)[] = { 154 const uint32_t PRIV(ucd_digit_sets)[] = { 171 const uint32_t PRIV(ucd_script_sets)[] = { 241 const uint32_t PRIV(ucd_boolprop_sets)[] = { [all …]
|
D | pcre2_tables.c | 60 const uint8_t PRIV(OP_lengths)[] = { OP_LENGTHS }; 66 const uint32_t PRIV(hspace_list)[] = { HSPACE_LIST }; 67 const uint32_t PRIV(vspace_list)[] = { VSPACE_LIST }; 73 const uint32_t PRIV(callout_start_delims)[] = { 78 const uint32_t PRIV(callout_end_delims[]) = { 100 const int PRIV(utf8_table1)[] = 103 const int PRIV(utf8_table1_size) = sizeof(PRIV(utf8_table1)) / sizeof(int); 108 const int PRIV(utf8_table2)[] = { 0, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc}; 109 const int PRIV(utf8_table3)[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01}; 114 const uint8_t PRIV(utf8_table4)[] = { [all …]
|
D | pcre2_xclass.c | 69 PRIV(xclass)(uint32_t c, PCRE2_SPTR data, BOOL utf) in PRIV() function 152 if ((data[1] == PRIV(ucp_gentype)[prop->chartype]) == isprop) in PRIV() 166 MAPBIT(PRIV(ucd_script_sets) + UCD_SCRIPTX_PROP(prop), data[1]) != 0); in PRIV() 171 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV() 172 PRIV(ucp_gentype)[prop->chartype] == ucp_N) == isprop) in PRIV() 190 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_Z) == isprop) in PRIV() 197 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in PRIV() 198 PRIV(ucp_gentype)[prop->chartype] == ucp_N || c == CHAR_UNDERSCORE) in PRIV() 223 ok = MAPBIT(PRIV(ucd_boolprop_sets) + in PRIV() 241 if ((PRIV(ucp_gentype)[prop->chartype] != ucp_Z && in PRIV() [all …]
|
D | pcre2_string_utils.c | 63 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
|
D | pcre2_internal.h | 176 #ifndef PRIV 177 #define PRIV(name) _pcre2_##name macro 198 #define memmove(a, b, c) PRIV(memmove)(a, b, c) 481 PRIV(is_newline)((p), NLBLOCK->nltype, NLBLOCK->PSEND, \ 495 PRIV(was_newline)((p), NLBLOCK->nltype, NLBLOCK->PSSTART, \ 1831 #define REAL_GET_UCD(ch) (PRIV(ucd_records) + \ 1832 PRIV(ucd_stage2)[PRIV(ucd_stage1)[(int)(ch) / UCD_BLOCK_SIZE] * \ 1837 PRIV(dummy_ucd_record) : REAL_GET_UCD(ch)) 1852 #define UCD_CATEGORY(ch) PRIV(ucp_gentype)[UCD_CHARTYPE(ch)] 1903 extern const int PRIV(utf8_table1)[]; [all …]
|
D | pcre2_ord2utf.c | 59 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()
|
D | pcre2_context.c | 86 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 …]
|
D | pcre2_jit_misc.c | 53 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() 147 jit_stack = PRIV(memctl_malloc)(sizeof(pcre2_real_jit_stack), (pcre2_memctl *)gcontext); in pcre2_jit_stack_create() 207 PRIV(jit_get_target)(void) in PRIV() function 222 PRIV(jit_get_size)(void *executable_jit) in PRIV() function
|
D | pcre2_auto_possess.c | 214 return (pdata == PRIV(ucp_gentype)[prop->chartype]) == negated; in check_char_prop() 224 || MAPBIT(PRIV(ucd_script_sets) + UCD_SCRIPTX_PROP(prop), pdata) != 0); in check_char_prop() 230 return (PRIV(ucp_gentype)[prop->chartype] == ucp_L || in check_char_prop() 231 PRIV(ucp_gentype)[prop->chartype] == ucp_N) == negated; in check_char_prop() 246 return (PRIV(ucp_gentype)[prop->chartype] == ucp_Z) == negated; in check_char_prop() 251 return (PRIV(ucp_gentype)[prop->chartype] == ucp_L || in check_char_prop() 252 PRIV(ucp_gentype)[prop->chartype] == ucp_N || in check_char_prop() 256 p = PRIV(ucd_caseless_sets) + prop->caseset; in check_char_prop() 448 clist_src = PRIV(ucd_caseless_sets) + code[1]; in get_chr_property_list() 572 code += PRIV(OP_lengths)[c]; in compare_opcodes() [all …]
|
D | pcre2_config.c | 157 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()
|
D | pcre2_study.c | 276 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() 496 ce = cs = (PCRE2_UCHAR *)PRIV(find_bracket)(startcode, utf, recno); in find_minlength() 502 (PCRE2_UCHAR *)PRIV(find_bracket)(ce, utf, recno) == NULL) in find_minlength() 557 ce = cs = (PCRE2_UCHAR *)PRIV(find_bracket)(startcode, utf, recno); in find_minlength() 562 (PCRE2_UCHAR *)PRIV(find_bracket)(ce, utf, recno) == NULL) in find_minlength() [all …]
|
D | pcre2_dfa_match.c | 360 (PCRE2_SIZE)PRIV(OP_lengths)[OP_CALLOUT] : in do_callout_dfa() 1185 OK = PRIV(ucp_gentype)[prop->chartype] == code[2]; in internal_dfa_match() 1198 MAPBIT(PRIV(ucd_script_sets) + UCD_SCRIPTX_PROP(prop), code[2]) != 0); in internal_dfa_match() 1204 OK = PRIV(ucp_gentype)[prop->chartype] == ucp_L || in internal_dfa_match() 1205 PRIV(ucp_gentype)[prop->chartype] == ucp_N; in internal_dfa_match() 1222 OK = PRIV(ucp_gentype)[prop->chartype] == ucp_Z; in internal_dfa_match() 1228 OK = PRIV(ucp_gentype)[prop->chartype] == ucp_L || in internal_dfa_match() 1229 PRIV(ucp_gentype)[prop->chartype] == ucp_N || in internal_dfa_match() 1234 cp = PRIV(ucd_caseless_sets) + code[2]; in internal_dfa_match() 1253 OK = MAPBIT(PRIV(ucd_boolprop_sets) + in internal_dfa_match() [all …]
|
D | pcre2_script_run.c | 85 PRIV(script_run)(PCRE2_SPTR ptr, PCRE2_SPTR endptr, BOOL utf) in PRIV() function 149 memcpy(map, PRIV(ucd_script_sets) + UCD_SCRIPTX_PROP(ucd), UCD_MAPSIZE * sizeof(uint32_t)); in PRIV() 307 if (c <= PRIV(ucd_digit_sets)[1]) digitset = 1; else in PRIV() 311 int top = PRIV(ucd_digit_sets)[0]; in PRIV() 320 if (c <= PRIV(ucd_digit_sets)[mid]) top = mid; else bot = mid; in PRIV()
|
D | pcre2_find_bracket.c | 70 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()
|
D | pcre2_pattern_info.c | 192 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()
|
D | pcre2_substitute.c | 132 erc = PRIV(check_escape)(&ptr, ptrend, &ch, &errorcode, in find_text_end() 272 if (rlength == PCRE2_ZERO_TERMINATED) rlength = PRIV(strlen)(replacement); in pcre2_substitute() 341 length = subject? PRIV(strlen)(subject) : 0; in pcre2_substitute() 348 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->startchar)); in pcre2_substitute() 661 if (PRIV(strcmp_c8)(name, STRING_MARK) == 0) in pcre2_substitute() 787 if (PRIV(ucp_gentype)[type] == ucp_L && in pcre2_substitute() 803 if (utf) chlen = PRIV(ord2utf)(ch, temp); else in pcre2_substitute() 853 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute() 889 if (PRIV(ucp_gentype)[type] == ucp_L && in pcre2_substitute() 905 if (utf) chlen = PRIV(ord2utf)(ch, temp); else in pcre2_substitute()
|
D | pcre2_extuni.c | 60 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()
|
D | pcre2_printint.c | 143 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() 248 for (int i = PRIV(utt_size) - 1; i >= 0; i--) in get_ucpname() 250 const ucp_type_table *u = PRIV(utt) + i; in get_ucpname() 254 const char *s = PRIV(utt_names) + u->name_offset; in get_ucpname() 313 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop() 653 for (i = 0; PRIV(callout_start_delims)[i] != 0; i++) in pcre2_printint() 654 if (c == PRIV(callout_start_delims)[i]) in pcre2_printint() 656 c = PRIV(callout_end_delims)[i]; in pcre2_printint()
|
D | pcre2_match.c | 276 PRIV(OP_lengths)[OP_CALLOUT] : GET(Fecode, 1 + 2*LINK_SIZE); in do_callout() 421 const uint32_t *pp = PRIV(ucd_caseless_sets) + ur->caseset; in match_ref() 800 Fecode += PRIV(OP_lengths)[*Fecode]; in match() 1242 Loclength = PRIV(ord2utf)(othercase, Foccu); in match() 2171 if (!PRIV(xclass)(fc, Lxclass_data, utf)) RRETURN(MATCH_NOMATCH); in match() 2194 if (!PRIV(xclass)(fc, Lxclass_data, utf)) RRETURN(MATCH_NOMATCH); in match() 2217 if (!PRIV(xclass)(fc, Lxclass_data, utf)) break; in match() 2455 if ((Fecode[2] == PRIV(ucp_gentype)[prop->chartype]) == notmatch) in match() 2472 MAPBIT(PRIV(ucd_script_sets) + UCD_SCRIPTX_PROP(prop), Fecode[2]) != 0); in match() 2480 if ((PRIV(ucp_gentype)[prop->chartype] == ucp_L || in match() [all …]
|
D | pcre2_compile.c | 1271 PRIV(jit_free)(code->executable_jit, &code->memctl); in pcre2_code_free() 1504 PRIV(check_escape)(PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, uint32_t *chptr, in PRIV() function 2167 if (PRIV(strcmp_c8)(name, STRING_bidiclass) == 0 || in get_ucp() 2168 PRIV(strcmp_c8)(name, STRING_bc) == 0) in get_ucp() 2177 else if (PRIV(strcmp_c8)(name, STRING_script) == 0 || in get_ucp() 2178 PRIV(strcmp_c8)(name, STRING_sc) == 0) in get_ucp() 2181 else if (PRIV(strcmp_c8)(name, STRING_scriptextensions) == 0 || in get_ucp() 2182 PRIV(strcmp_c8)(name, STRING_scx) == 0) in get_ucp() 2200 top = PRIV(utt_size); in get_ucp() 2206 r = PRIV(strcmp_c8)(name, PRIV(utt_names) + PRIV(utt)[i].name_offset); in get_ucp() [all …]
|
D | pcre2_substring.c | 217 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()
|
D | pcre2_valid_utf.c | 63 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV() function 94 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV() function 155 ab = PRIV(utf8_table4)[c & 0x3f]; /* Number of additional bytes (1-5) */ in PRIV()
|
D | pcre2_newline.c | 79 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
|
D | pcre2_serialize.c | 85 &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()
|
/third_party/pcre2/pcre2/maint/ |
D | ucptest.c | 321 for (i = 0; i < PRIV(utt_size); i++) in get_propname() 323 const ucp_type_table *u = PRIV(utt) + i; in get_propname() 338 const char *s = PRIV(utt_names) + (PRIV(utt) + foundlist[i])->name_offset; in get_propname() 479 const uint32_t *p = PRIV(ucd_caseless_sets) + caseset - 1; in print_prop() 491 const uint32_t *p = PRIV(ucd_script_sets) + scriptx; in print_prop() 505 const uint32_t *p = PRIV(ucd_boolprop_sets) + in print_prop() 585 for (i = 0; i < PRIV(utt_size); i++) in find_chars() 587 const ucp_type_table *u = PRIV(utt) + i; in find_chars() 589 PRIV(utt_names) + u->name_offset) == 0) in find_chars() 608 if (i >= PRIV(utt_size)) in find_chars() [all …]
|