Go to the documentation of this file.
94 #include "util/util.h"
95 #include "util/logging.h"
97 #include "re2/stringpiece.h"
240 class CharClassBuilder;
629 static_cast<int>(
a) |
static_cast<int>(
b));
635 static_cast<int>(
a) ^
static_cast<int>(
b));
641 static_cast<int>(
a) &
static_cast<int>(
b));
652 #endif // RE2_REGEXP_H_
bool AddRange(Rune lo, Rune hi)
Regexp & operator=(const Regexp &)=delete
RuneRangeSet::iterator iterator
static Regexp * Plus(Regexp *sub, ParseFlags flags)
static Regexp * Star(Regexp *sub, ParseFlags flags)
void AddRuneToString(Rune r)
static Regexp * Capture(Regexp *sub, ParseFlags flags, int cap)
static const uint32_t AlphaMask
Regexp::ParseFlags operator^(Regexp::ParseFlags a, Regexp::ParseFlags b)
static CharClass * New(int maxranges)
static Regexp * LeadingRegexp(Regexp *re)
void AddCharClass(CharClassBuilder *cc)
Regexp::ParseFlags operator|(Regexp::ParseFlags a, Regexp::ParseFlags b)
static Regexp * Concat(Regexp **subs, int nsubs, ParseFlags flags)
Prog * CompileToProg(int64_t max_mem)
friend bool ParseCharClass(StringPiece *s, Regexp **out_re, RegexpStatus *status)
const typedef MCPhysReg * iterator
friend bool RegexpEqualTestingOnly(Regexp *, Regexp *)
bool RequiredPrefix(std::string *prefix, bool *foldcase, Regexp **suffix)
static Regexp * LiteralString(Rune *runes, int nrunes, ParseFlags flags)
void Copy(const RegexpStatus &status)
RegexpStatus & operator=(const RegexpStatus &)=delete
static const uint16_t kMaxNsub
void set_tmp(std::string *tmp)
static bool SimplifyRegexp(const StringPiece &src, ParseFlags flags, std::string *dst, RegexpStatus *status)
static Regexp * StarPlusOrQuest(RegexpOp op, Regexp *sub, ParseFlags flags)
static Regexp * Parse(const StringPiece &s, ParseFlags flags, RegexpStatus *status)
CharClassBuilder & operator=(const CharClassBuilder &)=delete
CharClass & operator=(const CharClass &)=delete
void set_code(RegexpStatusCode code)
static Rune * LeadingString(Regexp *re, int *nrune, ParseFlags *flags)
static int FactorAlternation(Regexp **sub, int nsub, ParseFlags flags)
static Regexp * NewCharClass(CharClass *cc, ParseFlags flags)
bool operator()(const RuneRange &a, const RuneRange &b) const
const std::string * name()
void AddRangeFlags(Rune lo, Rune hi, Regexp::ParseFlags parse_flags)
static void RemoveLeadingString(Regexp *re, int n)
Prog * CompileToReverseProg(int64_t max_mem)
const StringPiece & error_arg() const
static bool Equal(Regexp *a, Regexp *b)
static Regexp * ConcatOrAlternate(RegexpOp op, Regexp **subs, int nsubs, ParseFlags flags, bool can_factor)
std::map< std::string, int > * NamedCaptures()
@ kRegexpTrailingBackslash
unsigned char suffix[65536]
std::set< RuneRange, RuneRangeLess > RuneRangeSet
static const uint16_t kMaxRef
#define DCHECK_EQ(val1, val2)
static Regexp * RemoveLeadingRegexp(Regexp *re)
static Regexp * AlternateNoFactor(Regexp **subs, int nsubs, ParseFlags flags)
static Regexp * HaveMatch(int match_id, ParseFlags flags)
static const char prefix[]
RegexpStatusCode code() const
void set_error_arg(const StringPiece &error_arg)
std::map< int, std::string > * CaptureNames()
static Regexp * NewLiteral(Rune rune, ParseFlags flags)
CharClassBuilder * Copy()
static std::string CodeText(RegexpStatusCode code)
Regexp::ParseFlags operator&(Regexp::ParseFlags a, Regexp::ParseFlags b)
#define DCHECK(condition)
CharClass * GetCharClass()
static Regexp * Quest(Regexp *sub, ParseFlags flags)
Regexp::ParseFlags operator~(Regexp::ParseFlags a)
static Regexp * Alternate(Regexp **subs, int nsubs, ParseFlags flags)
Regexp(RegexpOp op, ParseFlags parse_flags)
static Regexp * Repeat(Regexp *sub, ParseFlags flags, int min, int max)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:02