#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 } |
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 () |
Regexp & | operator= (const Regexp &)=delete |
Regexp & | operator= (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 () | |
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] | |
}; | |
Regexp * | down_ |
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 |
Definition at line 274 of file bloaty/third_party/re2/re2/regexp.h.
Definition at line 278 of file bloaty/third_party/re2/re2/regexp.h.
Definition at line 280 of file re2/re2/regexp.h.
|
explicitprivate |
Definition at line 29 of file bloaty/third_party/re2/re2/regexp.cc.
|
private |
Definition at line 45 of file bloaty/third_party/re2/re2/regexp.cc.
|
explicitprivate |
|
private |
|
private |
Definition at line 170 of file bloaty/third_party/re2/re2/regexp.cc.
|
private |
|
inlineprivate |
Definition at line 505 of file bloaty/third_party/re2/re2/regexp.h.
|
inlineprivate |
Definition at line 518 of file re2/re2/regexp.h.
|
static |
Definition at line 290 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
static |
Definition at line 294 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
inline |
Definition at line 338 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 340 of file re2/re2/regexp.h.
|
static |
Definition at line 298 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
Definition at line 648 of file bloaty/third_party/re2/re2/regexp.cc.
|
inline |
Definition at line 337 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 339 of file re2/re2/regexp.h.
Definition at line 1220 of file bloaty/third_party/re2/re2/compile.cc.
Definition at line 1224 of file bloaty/third_party/re2/re2/compile.cc.
|
private |
Definition at line 46 of file bloaty/third_party/re2/re2/simplify.cc.
|
private |
|
static |
Definition at line 286 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
staticprivate |
Definition at line 234 of file bloaty/third_party/re2/re2/regexp.cc.
|
staticprivate |
void re2::Regexp::Decref | ( | ) |
Definition at line 115 of file bloaty/third_party/re2/re2/regexp.cc.
void re2::Regexp::Decref | ( | ) |
|
private |
Definition at line 134 of file bloaty/third_party/re2/re2/regexp.cc.
|
private |
std::string re2::Regexp::Dump | ( | ) |
Definition at line 156 of file bloaty/third_party/re2/re2/testing/dump.cc.
std::string re2::Regexp::Dump | ( | ) |
Definition at line 415 of file bloaty/third_party/re2/re2/regexp.cc.
|
staticprivate |
Definition at line 932 of file bloaty/third_party/re2/re2/parse.cc.
|
staticprivate |
|
static |
Definition at line 50 of file re2/re2/parse.cc.
|
static |
Definition at line 187 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
Regexp * re2::Regexp::Incref | ( | ) |
Definition at line 89 of file bloaty/third_party/re2/re2/regexp.cc.
Regexp* re2::Regexp::Incref | ( | ) |
Definition at line 729 of file bloaty/third_party/re2/re2/parse.cc.
|
staticprivate |
Definition at line 774 of file bloaty/third_party/re2/re2/parse.cc.
|
staticprivate |
|
static |
Definition at line 321 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
inline |
Definition at line 342 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 344 of file re2/re2/regexp.h.
|
inline |
Definition at line 335 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 337 of file re2/re2/regexp.h.
bool re2::Regexp::MimicsPCRE | ( | ) |
Definition at line 102 of file bloaty/third_party/re2/re2/mimics_pcre.cc.
bool re2::Regexp::MimicsPCRE | ( | ) |
|
inline |
Definition at line 334 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 336 of file re2/re2/regexp.h.
|
inline |
Definition at line 339 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 341 of file re2/re2/regexp.h.
Definition at line 606 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
Definition at line 332 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
static |
Definition at line 315 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
inline |
Definition at line 341 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 343 of file re2/re2/regexp.h.
|
inline |
Definition at line 322 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 324 of file re2/re2/regexp.h.
void re2::Regexp::NullWalk | ( | ) |
Definition at line 41 of file bloaty/third_party/re2/re2/testing/null_walker.cc.
void re2::Regexp::NullWalk | ( | ) |
int re2::Regexp::NumCaptures | ( | ) |
Definition at line 560 of file bloaty/third_party/re2/re2/regexp.cc.
int re2::Regexp::NumCaptures | ( | ) |
|
inline |
Definition at line 321 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 323 of file re2/re2/regexp.h.
|
static |
Definition at line 2200 of file bloaty/third_party/re2/re2/parse.cc.
|
static |
|
inline |
Definition at line 324 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 326 of file re2/re2/regexp.h.
|
static |
Definition at line 222 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
static |
Definition at line 230 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
private |
Definition at line 68 of file bloaty/third_party/re2/re2/regexp.cc.
|
private |
int re2::Regexp::Ref | ( | ) |
Definition at line 80 of file bloaty/third_party/re2/re2/regexp.cc.
int re2::Regexp::Ref | ( | ) |
Definition at line 745 of file bloaty/third_party/re2/re2/parse.cc.
Definition at line 797 of file bloaty/third_party/re2/re2/parse.cc.
|
static |
Definition at line 306 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
Definition at line 658 of file bloaty/third_party/re2/re2/regexp.cc.
Definition at line 720 of file re2/re2/regexp.cc.
|
inline |
Definition at line 336 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 338 of file re2/re2/regexp.h.
|
inline |
Definition at line 340 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 342 of file re2/re2/regexp.h.
|
inline |
Definition at line 323 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 325 of file re2/re2/regexp.h.
Regexp * re2::Regexp::Simplify | ( | ) |
Definition at line 179 of file bloaty/third_party/re2/re2/simplify.cc.
Regexp* re2::Regexp::Simplify | ( | ) |
|
static |
Definition at line 23 of file bloaty/third_party/re2/re2/simplify.cc.
|
static |
|
static |
Definition at line 226 of file bloaty/third_party/re2/re2/regexp.cc.
|
static |
|
staticprivate |
Definition at line 193 of file bloaty/third_party/re2/re2/regexp.cc.
|
staticprivate |
|
inline |
Definition at line 327 of file bloaty/third_party/re2/re2/regexp.h.
|
inline |
Definition at line 329 of file re2/re2/regexp.h.
|
private |
Definition at line 338 of file bloaty/third_party/re2/re2/regexp.cc.
|
private |
std::string re2::Regexp::ToString | ( | ) |
Definition at line 55 of file bloaty/third_party/re2/re2/tostring.cc.
std::string re2::Regexp::ToString | ( | ) |
|
friend |
Definition at line 364 of file bloaty/third_party/re2/re2/regexp.h.
|
friend |
Definition at line 497 of file bloaty/third_party/re2/re2/regexp.h.
|
friend |
Definition at line 375 of file bloaty/third_party/re2/re2/regexp.h.
|
friend |
|
friend |
|
friend |
Definition at line 454 of file bloaty/third_party/re2/re2/regexp.h.
Definition at line 226 of file bloaty/third_party/re2/re2/testing/parse_test.cc.
Definition at line 226 of file bloaty/third_party/re2/re2/testing/parse_test.cc.
|
friend |
Definition at line 365 of file bloaty/third_party/re2/re2/regexp.h.
union { ... } |
union { ... } |
union { ... } |
union { ... } |
int re2::Regexp::cap_ |
Definition at line 566 of file bloaty/third_party/re2/re2/regexp.h.
CharClass* re2::Regexp::cc_ |
Definition at line 577 of file bloaty/third_party/re2/re2/regexp.h.
CharClassBuilder* re2::Regexp::ccb_ |
Definition at line 578 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 557 of file bloaty/third_party/re2/re2/regexp.h.
Definition at line 550 of file bloaty/third_party/re2/re2/regexp.h.
Definition at line 541 of file bloaty/third_party/re2/re2/regexp.h.
int re2::Regexp::match_id_ |
Definition at line 581 of file bloaty/third_party/re2/re2/regexp.h.
int re2::Regexp::max_ |
Definition at line 562 of file bloaty/third_party/re2/re2/regexp.h.
int re2::Regexp::min_ |
Definition at line 563 of file bloaty/third_party/re2/re2/regexp.h.
std::string* re2::Regexp::name_ |
Definition at line 567 of file bloaty/third_party/re2/re2/regexp.h.
int re2::Regexp::nrunes_ |
Definition at line 570 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 549 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 520 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 530 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 540 of file bloaty/third_party/re2/re2/regexp.h.
Rune re2::Regexp::rune_ |
Definition at line 580 of file bloaty/third_party/re2/re2/regexp.h.
Rune* re2::Regexp::runes_ |
Definition at line 571 of file bloaty/third_party/re2/re2/regexp.h.
|
private |
Definition at line 525 of file bloaty/third_party/re2/re2/regexp.h.
Regexp** re2::Regexp::submany_ |
Definition at line 552 of file bloaty/third_party/re2/re2/regexp.h.
Regexp* re2::Regexp::subone_ |
Definition at line 553 of file bloaty/third_party/re2/re2/regexp.h.
void* re2::Regexp::the_union_[2] |
Definition at line 582 of file bloaty/third_party/re2/re2/regexp.h.