Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
re2::Regexp Class Reference

#include <regexp.h>

Classes

class  ParseState
 
class  Walker
 

Public Types

enum  ParseFlags {
  NoParseFlags = 0, FoldCase = 1<<0, Literal = 1<<1, ClassNL = 1<<2,
  DotNL = 1<<3, MatchNL = ClassNL | DotNL, OneLine = 1<<4, Latin1 = 1<<5,
  NonGreedy = 1<<6, PerlClasses = 1<<7, PerlB = 1<<8, PerlX = 1<<9,
  UnicodeGroups = 1<<10, NeverNL = 1<<11, NeverCapture = 1<<12, LikePerl,
  WasDollar = 1<<13, AllParseFlags = (1<<14)-1, NoParseFlags = 0, FoldCase = 1<<0,
  Literal = 1<<1, ClassNL = 1<<2, DotNL = 1<<3, MatchNL = ClassNL | DotNL,
  OneLine = 1<<4, Latin1 = 1<<5, NonGreedy = 1<<6, PerlClasses = 1<<7,
  PerlB = 1<<8, PerlX = 1<<9, UnicodeGroups = 1<<10, NeverNL = 1<<11,
  NeverCapture = 1<<12, LikePerl, WasDollar = 1<<13, AllParseFlags = (1<<14)-1
}
 
enum  ParseFlags {
  NoParseFlags = 0, FoldCase = 1<<0, Literal = 1<<1, ClassNL = 1<<2,
  DotNL = 1<<3, MatchNL = ClassNL | DotNL, OneLine = 1<<4, Latin1 = 1<<5,
  NonGreedy = 1<<6, PerlClasses = 1<<7, PerlB = 1<<8, PerlX = 1<<9,
  UnicodeGroups = 1<<10, NeverNL = 1<<11, NeverCapture = 1<<12, LikePerl,
  WasDollar = 1<<13, AllParseFlags = (1<<14)-1, NoParseFlags = 0, FoldCase = 1<<0,
  Literal = 1<<1, ClassNL = 1<<2, DotNL = 1<<3, MatchNL = ClassNL | DotNL,
  OneLine = 1<<4, Latin1 = 1<<5, NonGreedy = 1<<6, PerlClasses = 1<<7,
  PerlB = 1<<8, PerlX = 1<<9, UnicodeGroups = 1<<10, NeverNL = 1<<11,
  NeverCapture = 1<<12, LikePerl, WasDollar = 1<<13, AllParseFlags = (1<<14)-1
}
 

Public Member Functions

int cap ()
 
int cap ()
 
std::map< int, std::string > * CaptureNames ()
 
std::map< int, std::string > * CaptureNames ()
 
CharClasscc ()
 
CharClasscc ()
 
ProgCompileToProg (int64_t max_mem)
 
ProgCompileToProg (int64_t max_mem)
 
ProgCompileToReverseProg (int64_t max_mem)
 
ProgCompileToReverseProg (int64_t max_mem)
 
void Decref ()
 
void Decref ()
 
std::string Dump ()
 
std::string Dump ()
 
RegexpIncref ()
 
RegexpIncref ()
 
int match_id ()
 
int match_id ()
 
int max ()
 
int max ()
 
bool MimicsPCRE ()
 
bool MimicsPCRE ()
 
int min ()
 
int min ()
 
const std::string * name ()
 
const std::string * name ()
 
std::map< std::string, int > * NamedCaptures ()
 
std::map< std::string, int > * NamedCaptures ()
 
int nrunes ()
 
int nrunes ()
 
int nsub ()
 
int nsub ()
 
void NullWalk ()
 
void NullWalk ()
 
int NumCaptures ()
 
int NumCaptures ()
 
RegexpOp op ()
 
RegexpOp op ()
 
ParseFlags parse_flags ()
 
ParseFlags parse_flags ()
 
int Ref ()
 
int Ref ()
 
bool RequiredPrefix (std::string *prefix, bool *foldcase, Regexp **suffix)
 
bool RequiredPrefix (std::string *prefix, bool *foldcase, Regexp **suffix)
 
bool RequiredPrefixForAccel (std::string *prefix, bool *foldcase)
 
Rune rune ()
 
Rune rune ()
 
Runerunes ()
 
Runerunes ()
 
bool simple ()
 
bool simple ()
 
RegexpSimplify ()
 
RegexpSimplify ()
 
Regexp ** sub ()
 
Regexp ** sub ()
 
std::string ToString ()
 
std::string ToString ()
 

Static Public Member Functions

static RegexpAlternate (Regexp **subs, int nsubs, ParseFlags flags)
 
static RegexpAlternate (Regexp **subs, int nsubs, ParseFlags flags)
 
static RegexpAlternateNoFactor (Regexp **subs, int nsubs, ParseFlags flags)
 
static RegexpAlternateNoFactor (Regexp **subs, int nsubs, ParseFlags flags)
 
static RegexpCapture (Regexp *sub, ParseFlags flags, int cap)
 
static RegexpCapture (Regexp *sub, ParseFlags flags, int cap)
 
static RegexpConcat (Regexp **subs, int nsubs, ParseFlags flags)
 
static RegexpConcat (Regexp **subs, int nsubs, ParseFlags flags)
 
static void FUZZING_ONLY_set_maximum_repeat_count (int i)
 
static RegexpHaveMatch (int match_id, ParseFlags flags)
 
static RegexpHaveMatch (int match_id, ParseFlags flags)
 
static RegexpLiteralString (Rune *runes, int nrunes, ParseFlags flags)
 
static RegexpLiteralString (Rune *runes, int nrunes, ParseFlags flags)
 
static RegexpNewCharClass (CharClass *cc, ParseFlags flags)
 
static RegexpNewCharClass (CharClass *cc, ParseFlags flags)
 
static RegexpNewLiteral (Rune rune, ParseFlags flags)
 
static RegexpNewLiteral (Rune rune, ParseFlags flags)
 
static RegexpParse (const StringPiece &s, ParseFlags flags, RegexpStatus *status)
 
static RegexpParse (const StringPiece &s, ParseFlags flags, RegexpStatus *status)
 
static RegexpPlus (Regexp *sub, ParseFlags flags)
 
static RegexpPlus (Regexp *sub, ParseFlags flags)
 
static RegexpQuest (Regexp *sub, ParseFlags flags)
 
static RegexpQuest (Regexp *sub, ParseFlags flags)
 
static RegexpRepeat (Regexp *sub, ParseFlags flags, int min, int max)
 
static RegexpRepeat (Regexp *sub, ParseFlags flags, int min, int max)
 
static bool SimplifyRegexp (const StringPiece &src, ParseFlags flags, std::string *dst, RegexpStatus *status)
 
static bool SimplifyRegexp (const StringPiece &src, ParseFlags flags, std::string *dst, RegexpStatus *status)
 
static RegexpStar (Regexp *sub, ParseFlags flags)
 
static RegexpStar (Regexp *sub, ParseFlags flags)
 

Private Member Functions

void AddRuneToString (Rune r)
 
void AddRuneToString (Rune r)
 
void AllocSub (int n)
 
void AllocSub (int n)
 
bool ComputeSimple ()
 
bool ComputeSimple ()
 
void Destroy ()
 
void Destroy ()
 
Regexpoperator= (const Regexp &)=delete
 
Regexpoperator= (const Regexp &)=delete
 
bool QuickDestroy ()
 
bool QuickDestroy ()
 
 Regexp (const Regexp &)=delete
 
 Regexp (const Regexp &)=delete
 
 Regexp (RegexpOp op, ParseFlags parse_flags)
 
 Regexp (RegexpOp op, ParseFlags parse_flags)
 
void Swap (Regexp *that)
 
void Swap (Regexp *that)
 
 ~Regexp ()
 
 ~Regexp ()
 

Static Private Member Functions

static RegexpConcatOrAlternate (RegexpOp op, Regexp **subs, int nsubs, ParseFlags flags, bool can_factor)
 
static RegexpConcatOrAlternate (RegexpOp op, Regexp **subs, int nsubs, ParseFlags flags, bool can_factor)
 
static bool Equal (Regexp *a, Regexp *b)
 
static bool Equal (Regexp *a, Regexp *b)
 
static int FactorAlternation (Regexp **sub, int nsub, ParseFlags flags)
 
static int FactorAlternation (Regexp **sub, int nsub, ParseFlags flags)
 
static RegexpLeadingRegexp (Regexp *re)
 
static RegexpLeadingRegexp (Regexp *re)
 
static RuneLeadingString (Regexp *re, int *nrune, ParseFlags *flags)
 
static RuneLeadingString (Regexp *re, int *nrune, ParseFlags *flags)
 
static RegexpRemoveLeadingRegexp (Regexp *re)
 
static RegexpRemoveLeadingRegexp (Regexp *re)
 
static void RemoveLeadingString (Regexp *re, int n)
 
static void RemoveLeadingString (Regexp *re, int n)
 
static RegexpStarPlusOrQuest (RegexpOp op, Regexp *sub, ParseFlags flags)
 
static RegexpStarPlusOrQuest (RegexpOp op, Regexp *sub, ParseFlags flags)
 

Private Attributes

union {
   Regexp **   submany_
 
   Regexp *   subone_
 
}; 
 
union {
   struct {
      int   max_
 
      int   min_
 
   } 
 
   struct {
      int   cap_
 
      std::string *   name_
 
   } 
 
   struct {
      int   nrunes_
 
      Rune *   runes_
 
   } 
 
   struct {
      CharClass *   cc_
 
      CharClassBuilder *   ccb_
 
   } 
 
   int   match_id_
 
   Rune   rune_
 
   void *   the_union_ [2]
 
}; 
 
union {
   Regexp **   submany_
 
   Regexp *   subone_
 
}; 
 
union {
   struct {
      int   max_
 
      int   min_
 
   } 
 
   struct {
      int   cap_
 
      std::string *   name_
 
   } 
 
   struct {
      int   nrunes_
 
      Rune *   runes_
 
   } 
 
   struct {
      CharClass *   cc_
 
      CharClassBuilder *   ccb_
 
   } 
 
   int   match_id_
 
   Rune   rune_
 
   void *   the_union_ [2]
 
}; 
 
Regexpdown_
 
uint16_t nsub_
 
uint8_t op_
 
uint16_t parse_flags_
 
uint16_t ref_
 
uint8_t simple_
 

Static Private Attributes

static const uint16_t kMaxNsub = 0xffff
 
static const uint16_t kMaxRef = 0xffff
 

Friends

class CoalesceWalker
 
class FactorAlternationImpl
 
class NumCapturesWalker
 
bool ParseCharClass (StringPiece *s, Regexp **out_re, RegexpStatus *status)
 
bool ParseCharClass (StringPiece *s, Regexp **out_re, RegexpStatus *status)
 
class ParseState
 
bool RegexpEqualTestingOnly (Regexp *, Regexp *)
 
bool RegexpEqualTestingOnly (Regexp *, Regexp *)
 
class SimplifyWalker
 

Detailed Description

Definition at line 274 of file bloaty/third_party/re2/re2/regexp.h.

Member Enumeration Documentation

◆ ParseFlags [1/2]

Enumerator
NoParseFlags 
FoldCase 
Literal 
ClassNL 
DotNL 
MatchNL 
OneLine 
Latin1 
NonGreedy 
PerlClasses 
PerlB 
PerlX 
UnicodeGroups 
NeverNL 
NeverCapture 
LikePerl 
WasDollar 
AllParseFlags 
NoParseFlags 
FoldCase 
Literal 
ClassNL 
DotNL 
MatchNL 
OneLine 
Latin1 
NonGreedy 
PerlClasses 
PerlB 
PerlX 
UnicodeGroups 
NeverNL 
NeverCapture 
LikePerl 
WasDollar 
AllParseFlags 

Definition at line 278 of file bloaty/third_party/re2/re2/regexp.h.

◆ ParseFlags [2/2]

Enumerator
NoParseFlags 
FoldCase 
Literal 
ClassNL 
DotNL 
MatchNL 
OneLine 
Latin1 
NonGreedy 
PerlClasses 
PerlB 
PerlX 
UnicodeGroups 
NeverNL 
NeverCapture 
LikePerl 
WasDollar 
AllParseFlags 
NoParseFlags 
FoldCase 
Literal 
ClassNL 
DotNL 
MatchNL 
OneLine 
Latin1 
NonGreedy 
PerlClasses 
PerlB 
PerlX 
UnicodeGroups 
NeverNL 
NeverCapture 
LikePerl 
WasDollar 
AllParseFlags 

Definition at line 280 of file re2/re2/regexp.h.

Constructor & Destructor Documentation

◆ Regexp() [1/4]

re2::Regexp::Regexp ( RegexpOp  op,
ParseFlags  parse_flags 
)
explicitprivate

Definition at line 29 of file bloaty/third_party/re2/re2/regexp.cc.

◆ ~Regexp() [1/2]

re2::Regexp::~Regexp ( )
private

Definition at line 45 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Regexp() [2/4]

re2::Regexp::Regexp ( const Regexp )
privatedelete

◆ Regexp() [3/4]

re2::Regexp::Regexp ( RegexpOp  op,
ParseFlags  parse_flags 
)
explicitprivate

◆ ~Regexp() [2/2]

re2::Regexp::~Regexp ( )
private

◆ Regexp() [4/4]

re2::Regexp::Regexp ( const Regexp )
privatedelete

Member Function Documentation

◆ AddRuneToString() [1/2]

void re2::Regexp::AddRuneToString ( Rune  r)
private

Definition at line 170 of file bloaty/third_party/re2/re2/regexp.cc.

◆ AddRuneToString() [2/2]

void re2::Regexp::AddRuneToString ( Rune  r)
private

◆ AllocSub() [1/2]

void re2::Regexp::AllocSub ( int  n)
inlineprivate

Definition at line 505 of file bloaty/third_party/re2/re2/regexp.h.

◆ AllocSub() [2/2]

void re2::Regexp::AllocSub ( int  n)
inlineprivate

Definition at line 518 of file re2/re2/regexp.h.

◆ Alternate() [1/2]

Regexp * re2::Regexp::Alternate ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

Definition at line 290 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Alternate() [2/2]

static Regexp* re2::Regexp::Alternate ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

◆ AlternateNoFactor() [1/2]

Regexp * re2::Regexp::AlternateNoFactor ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

Definition at line 294 of file bloaty/third_party/re2/re2/regexp.cc.

◆ AlternateNoFactor() [2/2]

static Regexp* re2::Regexp::AlternateNoFactor ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

◆ cap() [1/2]

int re2::Regexp::cap ( )
inline

Definition at line 338 of file bloaty/third_party/re2/re2/regexp.h.

◆ cap() [2/2]

int re2::Regexp::cap ( )
inline

Definition at line 340 of file re2/re2/regexp.h.

◆ Capture() [1/2]

Regexp * re2::Regexp::Capture ( Regexp sub,
ParseFlags  flags,
int  cap 
)
static

Definition at line 298 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Capture() [2/2]

static Regexp* re2::Regexp::Capture ( Regexp sub,
ParseFlags  flags,
int  cap 
)
static

◆ CaptureNames() [1/2]

std::map< int, std::string > * re2::Regexp::CaptureNames ( )

Definition at line 648 of file bloaty/third_party/re2/re2/regexp.cc.

◆ CaptureNames() [2/2]

std::map<int, std::string>* re2::Regexp::CaptureNames ( )

◆ cc() [1/2]

CharClass* re2::Regexp::cc ( )
inline

Definition at line 337 of file bloaty/third_party/re2/re2/regexp.h.

◆ cc() [2/2]

CharClass* re2::Regexp::cc ( )
inline

Definition at line 339 of file re2/re2/regexp.h.

◆ CompileToProg() [1/2]

Prog * re2::Regexp::CompileToProg ( int64_t  max_mem)

Definition at line 1220 of file bloaty/third_party/re2/re2/compile.cc.

◆ CompileToProg() [2/2]

Prog* re2::Regexp::CompileToProg ( int64_t  max_mem)

◆ CompileToReverseProg() [1/2]

Prog * re2::Regexp::CompileToReverseProg ( int64_t  max_mem)

Definition at line 1224 of file bloaty/third_party/re2/re2/compile.cc.

◆ CompileToReverseProg() [2/2]

Prog* re2::Regexp::CompileToReverseProg ( int64_t  max_mem)

◆ ComputeSimple() [1/2]

bool re2::Regexp::ComputeSimple ( )
private

Definition at line 46 of file bloaty/third_party/re2/re2/simplify.cc.

◆ ComputeSimple() [2/2]

bool re2::Regexp::ComputeSimple ( )
private

◆ Concat() [1/2]

Regexp * re2::Regexp::Concat ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

Definition at line 286 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Concat() [2/2]

static Regexp* re2::Regexp::Concat ( Regexp **  subs,
int  nsubs,
ParseFlags  flags 
)
static

◆ ConcatOrAlternate() [1/2]

Regexp * re2::Regexp::ConcatOrAlternate ( RegexpOp  op,
Regexp **  subs,
int  nsubs,
ParseFlags  flags,
bool  can_factor 
)
staticprivate

Definition at line 234 of file bloaty/third_party/re2/re2/regexp.cc.

◆ ConcatOrAlternate() [2/2]

static Regexp* re2::Regexp::ConcatOrAlternate ( RegexpOp  op,
Regexp **  subs,
int  nsubs,
ParseFlags  flags,
bool  can_factor 
)
staticprivate

◆ Decref() [1/2]

void re2::Regexp::Decref ( )

Definition at line 115 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Decref() [2/2]

void re2::Regexp::Decref ( )

◆ Destroy() [1/2]

void re2::Regexp::Destroy ( )
private

Definition at line 134 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Destroy() [2/2]

void re2::Regexp::Destroy ( )
private

◆ Dump() [1/2]

std::string re2::Regexp::Dump ( )

Definition at line 156 of file bloaty/third_party/re2/re2/testing/dump.cc.

◆ Dump() [2/2]

std::string re2::Regexp::Dump ( )

◆ Equal() [1/2]

bool re2::Regexp::Equal ( Regexp a,
Regexp b 
)
staticprivate

Definition at line 415 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Equal() [2/2]

static bool re2::Regexp::Equal ( Regexp a,
Regexp b 
)
staticprivate

◆ FactorAlternation() [1/2]

int re2::Regexp::FactorAlternation ( Regexp **  sub,
int  nsub,
ParseFlags  flags 
)
staticprivate

Definition at line 932 of file bloaty/third_party/re2/re2/parse.cc.

◆ FactorAlternation() [2/2]

static int re2::Regexp::FactorAlternation ( Regexp **  sub,
int  nsub,
ParseFlags  flags 
)
staticprivate

◆ FUZZING_ONLY_set_maximum_repeat_count()

void re2::Regexp::FUZZING_ONLY_set_maximum_repeat_count ( int  i)
static

Definition at line 50 of file re2/re2/parse.cc.

◆ HaveMatch() [1/2]

Regexp * re2::Regexp::HaveMatch ( int  match_id,
ParseFlags  flags 
)
static

Definition at line 187 of file bloaty/third_party/re2/re2/regexp.cc.

◆ HaveMatch() [2/2]

static Regexp* re2::Regexp::HaveMatch ( int  match_id,
ParseFlags  flags 
)
static

◆ Incref() [1/2]

Regexp * re2::Regexp::Incref ( )

Definition at line 89 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Incref() [2/2]

Regexp* re2::Regexp::Incref ( )

◆ LeadingRegexp() [1/2]

Regexp * re2::Regexp::LeadingRegexp ( Regexp re)
staticprivate

Definition at line 729 of file bloaty/third_party/re2/re2/parse.cc.

◆ LeadingRegexp() [2/2]

static Regexp* re2::Regexp::LeadingRegexp ( Regexp re)
staticprivate

◆ LeadingString() [1/2]

Rune * re2::Regexp::LeadingString ( Regexp re,
int nrune,
Regexp::ParseFlags flags 
)
staticprivate

Definition at line 774 of file bloaty/third_party/re2/re2/parse.cc.

◆ LeadingString() [2/2]

static Rune* re2::Regexp::LeadingString ( Regexp re,
int nrune,
ParseFlags flags 
)
staticprivate

◆ LiteralString() [1/2]

Regexp * re2::Regexp::LiteralString ( Rune runes,
int  nrunes,
ParseFlags  flags 
)
static

Definition at line 321 of file bloaty/third_party/re2/re2/regexp.cc.

◆ LiteralString() [2/2]

static Regexp* re2::Regexp::LiteralString ( Rune runes,
int  nrunes,
ParseFlags  flags 
)
static

◆ match_id() [1/2]

int re2::Regexp::match_id ( )
inline

Definition at line 342 of file bloaty/third_party/re2/re2/regexp.h.

◆ match_id() [2/2]

int re2::Regexp::match_id ( )
inline

Definition at line 344 of file re2/re2/regexp.h.

◆ max() [1/2]

int re2::Regexp::max ( )
inline

Definition at line 335 of file bloaty/third_party/re2/re2/regexp.h.

◆ max() [2/2]

int re2::Regexp::max ( )
inline

Definition at line 337 of file re2/re2/regexp.h.

◆ MimicsPCRE() [1/2]

bool re2::Regexp::MimicsPCRE ( )

Definition at line 102 of file bloaty/third_party/re2/re2/mimics_pcre.cc.

◆ MimicsPCRE() [2/2]

bool re2::Regexp::MimicsPCRE ( )

◆ min() [1/2]

int re2::Regexp::min ( )
inline

Definition at line 334 of file bloaty/third_party/re2/re2/regexp.h.

◆ min() [2/2]

int re2::Regexp::min ( )
inline

Definition at line 336 of file re2/re2/regexp.h.

◆ name() [1/2]

const std::string* re2::Regexp::name ( )
inline

Definition at line 339 of file bloaty/third_party/re2/re2/regexp.h.

◆ name() [2/2]

const std::string* re2::Regexp::name ( )
inline

Definition at line 341 of file re2/re2/regexp.h.

◆ NamedCaptures() [1/2]

std::map< std::string, int > * re2::Regexp::NamedCaptures ( )

Definition at line 606 of file bloaty/third_party/re2/re2/regexp.cc.

◆ NamedCaptures() [2/2]

std::map<std::string, int>* re2::Regexp::NamedCaptures ( )

◆ NewCharClass() [1/2]

Regexp * re2::Regexp::NewCharClass ( CharClass cc,
ParseFlags  flags 
)
static

Definition at line 332 of file bloaty/third_party/re2/re2/regexp.cc.

◆ NewCharClass() [2/2]

static Regexp* re2::Regexp::NewCharClass ( CharClass cc,
ParseFlags  flags 
)
static

◆ NewLiteral() [1/2]

Regexp * re2::Regexp::NewLiteral ( Rune  rune,
ParseFlags  flags 
)
static

Definition at line 315 of file bloaty/third_party/re2/re2/regexp.cc.

◆ NewLiteral() [2/2]

static Regexp* re2::Regexp::NewLiteral ( Rune  rune,
ParseFlags  flags 
)
static

◆ nrunes() [1/2]

int re2::Regexp::nrunes ( )
inline

Definition at line 341 of file bloaty/third_party/re2/re2/regexp.h.

◆ nrunes() [2/2]

int re2::Regexp::nrunes ( )
inline

Definition at line 343 of file re2/re2/regexp.h.

◆ nsub() [1/2]

int re2::Regexp::nsub ( )
inline

Definition at line 322 of file bloaty/third_party/re2/re2/regexp.h.

◆ nsub() [2/2]

int re2::Regexp::nsub ( )
inline

Definition at line 324 of file re2/re2/regexp.h.

◆ NullWalk() [1/2]

void re2::Regexp::NullWalk ( )

◆ NullWalk() [2/2]

void re2::Regexp::NullWalk ( )

◆ NumCaptures() [1/2]

int re2::Regexp::NumCaptures ( )

Definition at line 560 of file bloaty/third_party/re2/re2/regexp.cc.

◆ NumCaptures() [2/2]

int re2::Regexp::NumCaptures ( )

◆ op() [1/2]

RegexpOp re2::Regexp::op ( )
inline

Definition at line 321 of file bloaty/third_party/re2/re2/regexp.h.

◆ op() [2/2]

RegexpOp re2::Regexp::op ( )
inline

Definition at line 323 of file re2/re2/regexp.h.

◆ operator=() [1/2]

Regexp& re2::Regexp::operator= ( const Regexp )
privatedelete

◆ operator=() [2/2]

Regexp& re2::Regexp::operator= ( const Regexp )
privatedelete

◆ Parse() [1/2]

Regexp * re2::Regexp::Parse ( const StringPiece s,
ParseFlags  flags,
RegexpStatus status 
)
static

Definition at line 2200 of file bloaty/third_party/re2/re2/parse.cc.

◆ Parse() [2/2]

static Regexp* re2::Regexp::Parse ( const StringPiece s,
ParseFlags  flags,
RegexpStatus status 
)
static

◆ parse_flags() [1/2]

ParseFlags re2::Regexp::parse_flags ( )
inline

Definition at line 324 of file bloaty/third_party/re2/re2/regexp.h.

◆ parse_flags() [2/2]

ParseFlags re2::Regexp::parse_flags ( )
inline

Definition at line 326 of file re2/re2/regexp.h.

◆ Plus() [1/2]

Regexp * re2::Regexp::Plus ( Regexp sub,
ParseFlags  flags 
)
static

Definition at line 222 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Plus() [2/2]

static Regexp* re2::Regexp::Plus ( Regexp sub,
ParseFlags  flags 
)
static

◆ Quest() [1/2]

Regexp * re2::Regexp::Quest ( Regexp sub,
ParseFlags  flags 
)
static

Definition at line 230 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Quest() [2/2]

static Regexp* re2::Regexp::Quest ( Regexp sub,
ParseFlags  flags 
)
static

◆ QuickDestroy() [1/2]

bool re2::Regexp::QuickDestroy ( )
private

Definition at line 68 of file bloaty/third_party/re2/re2/regexp.cc.

◆ QuickDestroy() [2/2]

bool re2::Regexp::QuickDestroy ( )
private

◆ Ref() [1/2]

int re2::Regexp::Ref ( )

Definition at line 80 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Ref() [2/2]

int re2::Regexp::Ref ( )

◆ RemoveLeadingRegexp() [1/2]

Regexp * re2::Regexp::RemoveLeadingRegexp ( Regexp re)
staticprivate

Definition at line 745 of file bloaty/third_party/re2/re2/parse.cc.

◆ RemoveLeadingRegexp() [2/2]

static Regexp* re2::Regexp::RemoveLeadingRegexp ( Regexp re)
staticprivate

◆ RemoveLeadingString() [1/2]

void re2::Regexp::RemoveLeadingString ( Regexp re,
int  n 
)
staticprivate

Definition at line 797 of file bloaty/third_party/re2/re2/parse.cc.

◆ RemoveLeadingString() [2/2]

static void re2::Regexp::RemoveLeadingString ( Regexp re,
int  n 
)
staticprivate

◆ Repeat() [1/2]

Regexp * re2::Regexp::Repeat ( Regexp sub,
ParseFlags  flags,
int  min,
int  max 
)
static

Definition at line 306 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Repeat() [2/2]

static Regexp* re2::Regexp::Repeat ( Regexp sub,
ParseFlags  flags,
int  min,
int  max 
)
static

◆ RequiredPrefix() [1/2]

bool re2::Regexp::RequiredPrefix ( std::string *  prefix,
bool foldcase,
Regexp **  suffix 
)

Definition at line 658 of file bloaty/third_party/re2/re2/regexp.cc.

◆ RequiredPrefix() [2/2]

bool re2::Regexp::RequiredPrefix ( std::string *  prefix,
bool foldcase,
Regexp **  suffix 
)

◆ RequiredPrefixForAccel()

bool re2::Regexp::RequiredPrefixForAccel ( std::string *  prefix,
bool foldcase 
)

Definition at line 720 of file re2/re2/regexp.cc.

◆ rune() [1/2]

Rune re2::Regexp::rune ( )
inline

Definition at line 336 of file bloaty/third_party/re2/re2/regexp.h.

◆ rune() [2/2]

Rune re2::Regexp::rune ( )
inline

Definition at line 338 of file re2/re2/regexp.h.

◆ runes() [1/2]

Rune* re2::Regexp::runes ( )
inline

Definition at line 340 of file bloaty/third_party/re2/re2/regexp.h.

◆ runes() [2/2]

Rune* re2::Regexp::runes ( )
inline

Definition at line 342 of file re2/re2/regexp.h.

◆ simple() [1/2]

bool re2::Regexp::simple ( )
inline

Definition at line 323 of file bloaty/third_party/re2/re2/regexp.h.

◆ simple() [2/2]

bool re2::Regexp::simple ( )
inline

Definition at line 325 of file re2/re2/regexp.h.

◆ Simplify() [1/2]

Regexp * re2::Regexp::Simplify ( )

Definition at line 179 of file bloaty/third_party/re2/re2/simplify.cc.

◆ Simplify() [2/2]

Regexp* re2::Regexp::Simplify ( )

◆ SimplifyRegexp() [1/2]

bool re2::Regexp::SimplifyRegexp ( const StringPiece src,
ParseFlags  flags,
std::string *  dst,
RegexpStatus status 
)
static

Definition at line 23 of file bloaty/third_party/re2/re2/simplify.cc.

◆ SimplifyRegexp() [2/2]

static bool re2::Regexp::SimplifyRegexp ( const StringPiece src,
ParseFlags  flags,
std::string *  dst,
RegexpStatus status 
)
static

◆ Star() [1/2]

Regexp * re2::Regexp::Star ( Regexp sub,
ParseFlags  flags 
)
static

Definition at line 226 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Star() [2/2]

static Regexp* re2::Regexp::Star ( Regexp sub,
ParseFlags  flags 
)
static

◆ StarPlusOrQuest() [1/2]

Regexp * re2::Regexp::StarPlusOrQuest ( RegexpOp  op,
Regexp sub,
ParseFlags  flags 
)
staticprivate

Definition at line 193 of file bloaty/third_party/re2/re2/regexp.cc.

◆ StarPlusOrQuest() [2/2]

static Regexp* re2::Regexp::StarPlusOrQuest ( RegexpOp  op,
Regexp sub,
ParseFlags  flags 
)
staticprivate

◆ sub() [1/2]

Regexp** re2::Regexp::sub ( )
inline

Definition at line 327 of file bloaty/third_party/re2/re2/regexp.h.

◆ sub() [2/2]

Regexp** re2::Regexp::sub ( )
inline

Definition at line 329 of file re2/re2/regexp.h.

◆ Swap() [1/2]

void re2::Regexp::Swap ( Regexp that)
private

Definition at line 338 of file bloaty/third_party/re2/re2/regexp.cc.

◆ Swap() [2/2]

void re2::Regexp::Swap ( Regexp that)
private

◆ ToString() [1/2]

std::string re2::Regexp::ToString ( )

Definition at line 55 of file bloaty/third_party/re2/re2/tostring.cc.

◆ ToString() [2/2]

std::string re2::Regexp::ToString ( )

Friends And Related Function Documentation

◆ CoalesceWalker

Definition at line 364 of file bloaty/third_party/re2/re2/regexp.h.

◆ FactorAlternationImpl

Definition at line 497 of file bloaty/third_party/re2/re2/regexp.h.

◆ NumCapturesWalker

Definition at line 375 of file bloaty/third_party/re2/re2/regexp.h.

◆ ParseCharClass [1/2]

bool ParseCharClass ( StringPiece s,
Regexp **  out_re,
RegexpStatus status 
)
friend

◆ ParseCharClass [2/2]

bool ParseCharClass ( StringPiece s,
Regexp **  out_re,
RegexpStatus status 
)
friend

◆ ParseState

ParseState
friend

Definition at line 454 of file bloaty/third_party/re2/re2/regexp.h.

◆ RegexpEqualTestingOnly [1/2]

bool RegexpEqualTestingOnly ( Regexp a,
Regexp b 
)
friend

◆ RegexpEqualTestingOnly [2/2]

bool RegexpEqualTestingOnly ( Regexp a,
Regexp b 
)
friend

◆ SimplifyWalker

Definition at line 365 of file bloaty/third_party/re2/re2/regexp.h.

Member Data Documentation

◆ @315

union { ... }

◆ @317

union { ... }

◆ @676

union { ... }

◆ @678

union { ... }

◆ cap_

int re2::Regexp::cap_

Definition at line 566 of file bloaty/third_party/re2/re2/regexp.h.

◆ cc_

CharClass* re2::Regexp::cc_

Definition at line 577 of file bloaty/third_party/re2/re2/regexp.h.

◆ ccb_

CharClassBuilder* re2::Regexp::ccb_

Definition at line 578 of file bloaty/third_party/re2/re2/regexp.h.

◆ down_

Regexp * re2::Regexp::down_
private

Definition at line 557 of file bloaty/third_party/re2/re2/regexp.h.

◆ kMaxNsub

static const uint16_t re2::Regexp::kMaxNsub = 0xffff
staticprivate

Definition at line 550 of file bloaty/third_party/re2/re2/regexp.h.

◆ kMaxRef

static const uint16_t re2::Regexp::kMaxRef = 0xffff
staticprivate

Definition at line 541 of file bloaty/third_party/re2/re2/regexp.h.

◆ match_id_

int re2::Regexp::match_id_

Definition at line 581 of file bloaty/third_party/re2/re2/regexp.h.

◆ max_

int re2::Regexp::max_

Definition at line 562 of file bloaty/third_party/re2/re2/regexp.h.

◆ min_

int re2::Regexp::min_

Definition at line 563 of file bloaty/third_party/re2/re2/regexp.h.

◆ name_

std::string* re2::Regexp::name_

Definition at line 567 of file bloaty/third_party/re2/re2/regexp.h.

◆ nrunes_

int re2::Regexp::nrunes_

Definition at line 570 of file bloaty/third_party/re2/re2/regexp.h.

◆ nsub_

uint16_t re2::Regexp::nsub_
private

Definition at line 549 of file bloaty/third_party/re2/re2/regexp.h.

◆ op_

uint8_t re2::Regexp::op_
private

Definition at line 520 of file bloaty/third_party/re2/re2/regexp.h.

◆ parse_flags_

uint16_t re2::Regexp::parse_flags_
private

Definition at line 530 of file bloaty/third_party/re2/re2/regexp.h.

◆ ref_

uint16_t re2::Regexp::ref_
private

Definition at line 540 of file bloaty/third_party/re2/re2/regexp.h.

◆ rune_

Rune re2::Regexp::rune_

Definition at line 580 of file bloaty/third_party/re2/re2/regexp.h.

◆ runes_

Rune* re2::Regexp::runes_

Definition at line 571 of file bloaty/third_party/re2/re2/regexp.h.

◆ simple_

uint8_t re2::Regexp::simple_
private

Definition at line 525 of file bloaty/third_party/re2/re2/regexp.h.

◆ submany_

Regexp** re2::Regexp::submany_

Definition at line 552 of file bloaty/third_party/re2/re2/regexp.h.

◆ subone_

Regexp* re2::Regexp::subone_

Definition at line 553 of file bloaty/third_party/re2/re2/regexp.h.

◆ the_union_

void* re2::Regexp::the_union_[2]

Definition at line 582 of file bloaty/third_party/re2/re2/regexp.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43