Home | History | Annotate | Download | only in re2

Lines Matching defs:ParseFlags

271   enum ParseFlags {
315 enum ParseFlags parse_flags() { return static_cast<ParseFlags>(parse_flags_); }
344 static Regexp* Parse(const StringPiece& s, ParseFlags flags,
360 static bool SimplifyRegexp(const StringPiece& src, ParseFlags flags,
385 static Regexp* Plus(Regexp* sub, ParseFlags flags);
386 static Regexp* Star(Regexp* sub, ParseFlags flags);
387 static Regexp* Quest(Regexp* sub, ParseFlags flags);
388 static Regexp* Concat(Regexp** subs, int nsubs, ParseFlags flags);
389 static Regexp* Alternate(Regexp** subs, int nsubs, ParseFlags flags);
390 static Regexp* Capture(Regexp* sub, ParseFlags flags, int cap);
391 static Regexp* Repeat(Regexp* sub, ParseFlags flags, int min, int max);
392 static Regexp* NewLiteral(Rune rune, ParseFlags flags);
393 static Regexp* NewCharClass(CharClass* cc, ParseFlags flags);
394 static Regexp* LiteralString(Rune* runes, int nrunes, ParseFlags flags);
395 static Regexp* HaveMatch(int match_id, ParseFlags flags);
398 static Regexp* AlternateNoFactor(Regexp** subs, int nsubs, ParseFlags flags);
433 explicit Regexp(RegexpOp op, ParseFlags parse_flags);
457 ParseFlags flags, bool can_factor);
462 static Rune* LeadingString(Regexp* re, int* nrune, ParseFlags* flags);
479 static int FactorAlternation(Regexp** sub, int nsub, ParseFlags flags);
481 ParseFlags flags, int maxdepth);
514 // uint16 instead of ParseFlags to control space usage.
596 void AddRangeFlags(Rune lo, Rune hi, Regexp::ParseFlags parse_flags);
607 // Tell g++ that bitwise ops on ParseFlags produce ParseFlags.
608 inline Regexp::ParseFlags operator|(Regexp::ParseFlags a, Regexp::ParseFlags b)
610 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) | static_cast<int>(b));
613 inline Regexp::ParseFlags operator^(Regexp::ParseFlags a, Regexp::ParseFlags b)
615 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) ^ static_cast<int>(b));
618 inline Regexp::ParseFlags operator&(Regexp::ParseFlags a, Regexp::ParseFlags b)
620 return static_cast<Regexp::ParseFlags>(static_cast<int>(a) & static_cast<int>(b));
623 inline Regexp::ParseFlags operator~(Regexp::ParseFlags a)
625 return static_cast<Regexp::ParseFlags>(~static_cast<int>(a));