Home | History | Annotate | Download | only in re2

Lines Matching refs:FoldCase

174   Frag ByteRange(int lo, int hi, bool foldcase);
193 void AddRuneRange(Rune lo, Rune hi, bool foldcase);
194 void AddRuneRangeLatin1(Rune lo, Rune hi, bool foldcase);
195 void AddRuneRangeUTF8(Rune lo, Rune hi, bool foldcase);
199 int RuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next);
200 int UncachedRuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next);
209 Frag Literal(Rune r, bool foldcase);
392 Frag Compiler::ByteRange(int lo, int hi, bool foldcase) {
396 inst_[id].InitByteRange(lo, hi, foldcase, 0);
399 if (foldcase && lo <= 'z' && hi >= 'a') {
484 int Compiler::UncachedRuneByteSuffix(uint8 lo, uint8 hi, bool foldcase,
486 Frag f = ByteRange(lo, hi, foldcase);
495 int Compiler::RuneByteSuffix(uint8 lo, uint8 hi, bool foldcase, int next) {
502 return UncachedRuneByteSuffix(lo, hi, foldcase, next);
505 uint64 key = ((uint64)next << 17) | (lo<<9) | (hi<<1) | foldcase;
509 int id = UncachedRuneByteSuffix(lo, hi, foldcase, next);
539 void Compiler::AddRuneRange(Rune lo, Rune hi, bool foldcase) {
543 AddRuneRangeUTF8(lo, hi, foldcase);
546 AddRuneRangeLatin1(lo, hi, foldcase);
551 void Compiler::AddRuneRangeLatin1(Rune lo, Rune hi, bool foldcase) {
557 AddSuffix(RuneByteSuffix(lo, hi, foldcase, 0));
604 void Compiler::AddRuneRangeUTF8(Rune lo, Rune hi, bool foldcase) {
619 AddRuneRangeUTF8(lo, max, foldcase);
620 AddRuneRangeUTF8(max+1, hi, foldcase);
627 AddSuffix(RuneByteSuffix(lo, hi, foldcase, 0));
636 AddRuneRangeUTF8(lo, lo|m, foldcase);
637 AddRuneRangeUTF8((lo|m)+1, hi, foldcase);
641 AddRuneRangeUTF8(lo, (hi&~m)-1, foldcase);
642 AddRuneRangeUTF8(hi&~m, hi, foldcase);
690 Frag Compiler::Literal(Rune r, bool foldcase) {
696 return ByteRange(r, r, foldcase);
700 return ByteRange(r, r, foldcase);
764 return Literal(re->rune(), re->parse_flags()&Regexp::FoldCase);
772 Frag f1 = Literal(re->runes()[i], re->parse_flags()&Regexp::FoldCase);