Home | History | Annotate | Download | only in re2

Lines Matching defs:ParseFlags

271   enum ParseFlags {
316 enum ParseFlags parse_flags() { return static_cast<ParseFlags>(parse_flags_); }
345 static Regexp* Parse(const StringPiece& s, ParseFlags flags,
361 static bool SimplifyRegexp(const StringPiece& src, ParseFlags flags,
386 static Regexp* Plus(Regexp* sub, ParseFlags flags);
387 static Regexp* Star(Regexp* sub, ParseFlags flags);
388 static Regexp* Quest(Regexp* sub, ParseFlags flags);
389 static Regexp* Concat(Regexp** subs, int nsubs, ParseFlags flags);
390 static Regexp* Alternate(Regexp** subs, int nsubs, ParseFlags flags);
391 static Regexp* Capture(Regexp* sub, ParseFlags flags, int cap);
392 static Regexp* Repeat(Regexp* sub, ParseFlags flags, int min, int max);
393 static Regexp* NewLiteral(Rune rune, ParseFlags flags);
394 static Regexp* NewCharClass(CharClass* cc, ParseFlags flags);
395 static Regexp* LiteralString(Rune* runes, int nrunes, ParseFlags flags);
396 static Regexp* HaveMatch(int match_id, ParseFlags flags);
399 static Regexp* AlternateNoFactor(Regexp** subs, int nsubs, ParseFlags flags);
434 explicit Regexp(RegexpOp op, ParseFlags parse_flags);
458 ParseFlags flags, bool can_factor);
463 static Rune* LeadingString(Regexp* re, int* nrune, ParseFlags* flags);
480 static int FactorAlternation(Regexp** sub, int nsub, ParseFlags flags);
482 ParseFlags flags, int maxdepth);
515 // uint16 instead of ParseFlags to control space usage.
597 void AddRangeFlags(Rune lo, Rune hi, Regexp::ParseFlags parse_flags);
608 // Tell g++ that bitwise ops on ParseFlags produce ParseFlags.
609 inline Regexp::ParseFlags operator|(Regexp::ParseFlags a, Regexp::ParseFlags b)
611 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) | static_cast<int>(b));
614 inline Regexp::ParseFlags operator^(Regexp::ParseFlags a, Regexp::ParseFlags b)
616 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) ^ static_cast<int>(b));
619 inline Regexp::ParseFlags operator&(Regexp::ParseFlags a, Regexp::ParseFlags b)
621 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) & static_cast<int>(b));
624 inline Regexp::ParseFlags operator~(Regexp::ParseFlags a)
626 return static_cast<Regexp::ParseFlags>(~static_cast<int>(a));