Home | History | Annotate | Download | only in re2

Lines Matching refs:FoldCase

173   Frag ByteRange(int lo, int hi, bool foldcase);
192 void AddRuneRange(Rune lo, Rune hi, bool foldcase);
193 void AddRuneRangeLatin1(Rune lo, Rune hi, bool foldcase);
194 void AddRuneRangeUTF8(Rune lo, Rune hi, bool foldcase);
198 int RuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next);
199 int UncachedRuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next);
208 Frag Literal(Rune r, bool foldcase);
391 Frag Compiler::ByteRange(int lo, int hi, bool foldcase) {
395 inst_[id].InitByteRange(lo, hi, foldcase, 0);
398 if (foldcase && lo <= 'z' && hi >= 'a') {
483 int Compiler::UncachedRuneByteSuffix(uint8 lo, uint8 hi, bool foldcase,
485 Frag f = ByteRange(lo, hi, foldcase);
494 int Compiler::RuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next) {
501 return UncachedRuneByteSuffix(lo, hi, foldcase, next);
504 uint64 key = ((uint64)next << 17) | (lo<<9) | (hi<<1) | foldcase;
508 int id = UncachedRuneByteSuffix(lo, hi, foldcase, next);
538 void Compiler::AddRuneRange(Rune lo, Rune hi, bool foldcase) {
542 AddRuneRangeUTF8(lo, hi, foldcase);
545 AddRuneRangeLatin1(lo, hi, foldcase);
550 void Compiler::AddRuneRangeLatin1(Rune lo, Rune hi, bool foldcase) {
556 AddSuffix(RuneByteSuffix(lo, hi, foldcase, 0));
603 void Compiler::AddRuneRangeUTF8(Rune lo, Rune hi, bool foldcase) {
618 AddRuneRangeUTF8(lo, max, foldcase);
619 AddRuneRangeUTF8(max+1, hi, foldcase);
626 AddSuffix(RuneByteSuffix(lo, hi, foldcase, 0));
635 AddRuneRangeUTF8(lo, lo|m, foldcase);
636 AddRuneRangeUTF8((lo|m)+1, hi, foldcase);
640 AddRuneRangeUTF8(lo, (hi&~m)-1, foldcase);
641 AddRuneRangeUTF8(hi&~m, hi, foldcase);
689 Frag Compiler::Literal(Rune r, bool foldcase) {
695 return ByteRange(r, r, foldcase);
699 return ByteRange(r, r, foldcase);
763 return Literal(re->rune(), re->parse_flags()&Regexp::FoldCase);
771 Frag f1 = Literal(re->runes()[i], re->parse_flags()&Regexp::FoldCase);