• Home
  • Raw
  • Download

Lines Matching refs:Regexp

121 class Compiler : public Regexp::Walker<Frag> {
130 static Prog *Compile(Regexp* re, bool reversed, int64 max_mem);
135 Regexp* re);
145 Frag PreVisit(Regexp* re, Frag parent_arg, bool* stop);
146 Frag PostVisit(Regexp* re, Frag parent_arg, Frag pre_arg, Frag* child_args,
148 Frag ShortVisit(Regexp* re, Frag parent_arg);
210 void Setup(Regexp::ParseFlags, int64, RE2::Anchor);
675 Frag Compiler::ShortVisit(Regexp* re, Frag) { in ShortVisit()
681 Frag Compiler::PreVisit(Regexp* re, Frag, bool* stop) { in PreVisit()
712 Frag Compiler::PostVisit(Regexp* re, Frag, Frag, Frag* child_frags, in PostVisit()
754 return Star(child_frags[0], re->parse_flags()&Regexp::NonGreedy); in PostVisit()
757 return Plus(child_frags[0], re->parse_flags()&Regexp::NonGreedy); in PostVisit()
760 return Quest(child_frags[0], re->parse_flags()&Regexp::NonGreedy); in PostVisit()
763 return Literal(re->rune(), re->parse_flags()&Regexp::FoldCase); in PostVisit()
771 Frag f1 = Literal(re->runes()[i], re->parse_flags()&Regexp::FoldCase); in PostVisit()
857 static bool IsAnchorStart(Regexp** pre, int depth) { in IsAnchorStart()
858 Regexp* re = *pre; in IsAnchorStart()
859 Regexp* sub; in IsAnchorStart()
873 Regexp** subcopy = new Regexp*[re->nsub()]; in IsAnchorStart()
877 *pre = Regexp::Concat(subcopy, re->nsub(), re->parse_flags()); in IsAnchorStart()
888 *pre = Regexp::Capture(sub, re->parse_flags(), re->cap()); in IsAnchorStart()
895 *pre = Regexp::LiteralString(NULL, 0, re->parse_flags()); in IsAnchorStart()
905 static bool IsAnchorEnd(Regexp** pre, int depth) { in IsAnchorEnd()
906 Regexp* re = *pre; in IsAnchorEnd()
907 Regexp* sub; in IsAnchorEnd()
921 Regexp** subcopy = new Regexp*[re->nsub()]; in IsAnchorEnd()
925 *pre = Regexp::Concat(subcopy, re->nsub(), re->parse_flags()); in IsAnchorEnd()
936 *pre = Regexp::Capture(sub, re->parse_flags(), re->cap()); in IsAnchorEnd()
943 *pre = Regexp::LiteralString(NULL, 0, re->parse_flags()); in IsAnchorEnd()
950 void Compiler::Setup(Regexp::ParseFlags flags, int64 max_mem, in Setup()
954 if (flags & Regexp::Latin1) in Setup()
990 Prog* Compiler::Compile(Regexp* re, bool reversed, int64 max_mem) { in Compile()
998 Regexp* sre = re->Simplify(); in Compile()
1078 Prog* Regexp::CompileToProg(int64 max_mem) { in CompileToProg()
1082 Prog* Regexp::CompileToReverseProg(int64 max_mem) { in CompileToReverseProg()
1092 Regexp* re) { in CompileSet()
1095 Regexp::ParseFlags pf = static_cast<Regexp::ParseFlags>(options.ParseFlags()); in CompileSet()
1134 Regexp* re) { in CompileSet()