Lines Matching refs:re
57 #define SET_BIT(c) re->start_bitmap[(c)/8] |= (1u << ((c)&7))
103 find_minlength(const pcre2_real_code *re, PCRE2_SPTR code, in find_minlength() argument
115 BOOL dupcapused = (re->flags & PCRE2_DUPCAPUSED) != 0; in find_minlength()
186 d = find_minlength(re, cc, startcode, utf, recurses, countptr, in find_minlength()
207 prev_cap_d = find_minlength(re, cc, startcode, utf, recurses, countptr, in find_minlength()
476 if (!dupcapused && (re->overall_options & PCRE2_MATCH_UNSET_BACKREF) == 0) in find_minlength()
480 (PCRE2_UCHAR *)((uint8_t *)re + sizeof(pcre2_real_code)) + in find_minlength()
481 GET2(cc, 1) * re->name_entry_size; in find_minlength()
521 dd = find_minlength(re, cs, startcode, utf, &this_recurse, in find_minlength()
535 slot += re->name_entry_size; in find_minlength()
555 if ((re->overall_options & PCRE2_MATCH_UNSET_BACKREF) == 0) in find_minlength()
580 d = find_minlength(re, cs, startcode, utf, &this_recurse, countptr, in find_minlength()
664 prev_recurse_d = find_minlength(re, cs, startcode, utf, &this_recurse, in find_minlength()
781 set_table_bit(pcre2_real_code *re, PCRE2_SPTR p, BOOL caseless, BOOL utf, in set_table_bit() argument
838 if (MAX_255(c)) SET_BIT(re->tables[fcc_offset + c]); in set_table_bit()
866 set_type_bits(pcre2_real_code *re, int cbit_type, unsigned int table_limit) in set_type_bits() argument
870 re->start_bitmap[c] |= re->tables[c+cbits_offset+cbit_type]; in set_type_bits()
875 if ((re->tables[cbits_offset + c/8] & (1u << (c&7))) != 0) in set_type_bits()
907 set_nottype_bits(pcre2_real_code *re, int cbit_type, unsigned int table_limit) in set_nottype_bits() argument
911 re->start_bitmap[c] |= (uint8_t)(~(re->tables[c+cbits_offset+cbit_type])); in set_nottype_bits()
913 if (table_limit != 32) for (c = 24; c < 32; c++) re->start_bitmap[c] = 0xff; in set_nottype_bits()
953 set_start_bits(pcre2_real_code *re, PCRE2_SPTR code, BOOL utf, BOOL ucp, in set_start_bits() argument
1124 rc = set_start_bits(re, tcode, utf, ucp, depthptr); in set_start_bits()
1180 rc = set_start_bits(re, ++tcode, utf, ucp, depthptr); in set_start_bits()
1202 tcode = set_table_bit(re, tcode + 1, FALSE, utf, ucp); in set_start_bits()
1211 tcode = set_table_bit(re, tcode + 1, TRUE, utf, ucp); in set_start_bits()
1219 tcode = set_table_bit(re, tcode + 1 + IMM2_SIZE, FALSE, utf, ucp); in set_start_bits()
1225 tcode = set_table_bit(re, tcode + 1 + IMM2_SIZE, TRUE, utf, ucp); in set_start_bits()
1237 (void)set_table_bit(re, tcode + 1, FALSE, utf, ucp); in set_start_bits()
1248 (void)set_table_bit(re, tcode + 1, TRUE, utf, ucp); in set_start_bits()
1334 set_nottype_bits(re, cbit_digit, table_limit); in set_start_bits()
1339 set_type_bits(re, cbit_digit, table_limit); in set_start_bits()
1344 set_nottype_bits(re, cbit_space, table_limit); in set_start_bits()
1349 set_type_bits(re, cbit_space, table_limit); in set_start_bits()
1354 set_nottype_bits(re, cbit_word, table_limit); in set_start_bits()
1359 set_type_bits(re, cbit_word, table_limit); in set_start_bits()
1464 set_nottype_bits(re, cbit_digit, table_limit); in set_start_bits()
1468 set_type_bits(re, cbit_digit, table_limit); in set_start_bits()
1472 set_nottype_bits(re, cbit_space, table_limit); in set_start_bits()
1476 set_type_bits(re, cbit_space, table_limit); in set_start_bits()
1480 set_nottype_bits(re, cbit_word, table_limit); in set_start_bits()
1484 set_type_bits(re, cbit_word, table_limit); in set_start_bits()
1526 re->start_bitmap[b/8] |= (1u << (b&7)); in set_start_bits()
1535 re->start_bitmap[b/8] |= (1u << (b&7)); in set_start_bits()
1563 re->start_bitmap[24] |= 0xf0; /* Bits for 0xc4 - 0xc8 */ in set_start_bits()
1564 memset(re->start_bitmap+25, 0xff, 7); /* Bits for 0xc9 - 0xff */ in set_start_bits()
1597 for (c = 0; c < 16; c++) re->start_bitmap[c] |= classmap[c]; in set_start_bits()
1603 re->start_bitmap[d/8] |= (1u << (d&7)); /* and then skip on to the */ in set_start_bits()
1613 for (c = 0; c < 32; c++) re->start_bitmap[c] |= classmap[c]; in set_start_bits()
1672 PRIV(study)(pcre2_real_code *re) in PRIV()
1676 BOOL utf = (re->overall_options & PCRE2_UTF) != 0; in PRIV()
1677 BOOL ucp = (re->overall_options & PCRE2_UCP) != 0; in PRIV()
1681 code = (PCRE2_UCHAR *)((uint8_t *)re + sizeof(pcre2_real_code)) + in PRIV()
1682 re->name_entry_size * re->name_count; in PRIV()
1688 if ((re->flags & (PCRE2_FIRSTSET|PCRE2_STARTLINE)) == 0) in PRIV()
1691 int rc = set_start_bits(re, code, utf, ucp, &depth); in PRIV()
1707 uint8_t *p = re->start_bitmap; in PRIV()
1748 int d = TABLE_GET((unsigned int)c, re->tables + fcc_offset, c); in PRIV()
1773 (re->flags & PCRE2_LASTSET) == 0 || in PRIV()
1775 re->last_codeunit != (uint32_t)a && in PRIV()
1776 (b < 0 || re->last_codeunit != (uint32_t)b) in PRIV()
1780 re->first_codeunit = a; in PRIV()
1786 re->flags |= flags; in PRIV()
1798 if ((re->flags & (PCRE2_MATCH_EMPTY|PCRE2_HASACCEPT)) == 0 && in PRIV()
1799 re->top_backref <= MAX_CACHE_BACKREF) in PRIV()
1804 min = find_minlength(re, code, code, utf, NULL, &count, backref_cache); in PRIV()
1817 re->minlength = (min > UINT16_MAX)? UINT16_MAX : min; in PRIV()