Classes | |
| class | RWLocker |
| struct | SearchParams |
| struct | StartInfo |
| struct | State |
| struct | StateEqual |
| struct | StateHash |
| class | StateSaver |
| class | Workq |
Public Types | |
| enum | { kByteEndText = 256, kFlagEmptyMask = 0xFF, kFlagMatch = 0x0100, kFlagLastWord = 0x0200, kFlagNeedShift = 16 } |
| enum | { kByteEndText = 256, kFlagEmptyMask = 0xFF, kFlagMatch = 0x0100, kFlagLastWord = 0x0200, kFlagNeedShift = 16 } |
| typedef std::unordered_set< State *, StateHash, StateEqual > | StateSet |
| typedef std::unordered_set< State *, StateHash, StateEqual > | StateSet |
Public Member Functions | |
| int | BuildAllStates (const Prog::DFAStateCallback &cb) |
| int | BuildAllStates (const Prog::DFAStateCallback &cb) |
| DFA (Prog *prog, Prog::MatchKind kind, int64_t max_mem) | |
| DFA (Prog *prog, Prog::MatchKind kind, int64_t max_mem) | |
| Prog::MatchKind | kind () |
| Prog::MatchKind | kind () |
| bool | ok () const |
| bool | ok () const |
| bool | PossibleMatchRange (std::string *min, std::string *max, int maxlen) |
| bool | PossibleMatchRange (std::string *min, std::string *max, int maxlen) |
| bool | Search (const StringPiece &text, const StringPiece &context, bool anchored, bool want_earliest_match, bool run_forward, bool *failed, const char **ep, SparseSet *matches) |
| bool | Search (const StringPiece &text, const StringPiece &context, bool anchored, bool want_earliest_match, bool run_forward, bool *failed, const char **ep, SparseSet *matches) |
| ~DFA () | |
| ~DFA () | |
Private Types | |
| enum | { kFbUnknown = -1, kFbNone = -2 } |
| enum | { kStartBeginText = 0, kStartBeginLine = 2, kStartAfterWordChar = 4, kStartAfterNonWordChar = 6, kMaxStart = 8, kStartAnchored = 1 } |
| enum | { kStartBeginText = 0, kStartBeginLine = 2, kStartAfterWordChar = 4, kStartAfterNonWordChar = 6, kMaxStart = 8, kStartAnchored = 1 } |
| using | CacheMutex = Mutex |
Static Private Member Functions | |
| static std::string | DumpState (State *state) |
| static std::string | DumpState (State *state) |
| static std::string | DumpWorkq (Workq *q) |
| static std::string | DumpWorkq (Workq *q) |
Private Attributes | |
| CacheMutex | cache_mutex_ |
| Mutex | cache_mutex_ |
| bool | init_failed_ |
| Prog::MatchKind | kind_ |
| int64_t | mem_budget_ |
| Mutex | mutex_ |
| Prog * | prog_ |
| Workq * | q0_ |
| Workq * | q1_ |
| PODArray< int > | stack_ |
| StartInfo | start_ [kMaxStart] |
| int64_t | state_budget_ |
| StateSet | state_cache_ |
Definition at line 77 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 175 of file re2/re2/dfa.cc.
| typedef std::unordered_set<State*, StateHash, StateEqual> re2::DFA::StateSet |
Definition at line 171 of file re2/re2/dfa.cc.
| typedef std::unordered_set<State*, StateHash, StateEqual> re2::DFA::StateSet |
Definition at line 177 of file bloaty/third_party/re2/re2/dfa.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| kByteEndText | |
| kFlagEmptyMask | |
| kFlagMatch | |
| kFlagLastWord | |
| kFlagNeedShift | |
Definition at line 140 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
| Enumerator | |
|---|---|
| kFbUnknown | |
| kFbNone | |
Definition at line 181 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
| Enumerator | |
|---|---|
| kStartBeginText | |
| kStartBeginLine | |
| kStartAfterWordChar | |
| kStartAfterNonWordChar | |
| kMaxStart | |
| kStartAnchored | |
Definition at line 186 of file bloaty/third_party/re2/re2/dfa.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| kByteEndText | |
| kFlagEmptyMask | |
| kFlagMatch | |
| kFlagLastWord | |
| kFlagNeedShift | |
Definition at line 134 of file re2/re2/dfa.cc.
|
private |
| Enumerator | |
|---|---|
| kStartBeginText | |
| kStartBeginLine | |
| kStartAfterWordChar | |
| kStartAfterNonWordChar | |
| kMaxStart | |
| kStartAnchored | |
Definition at line 177 of file re2/re2/dfa.cc.
| re2::DFA::DFA | ( | Prog * | prog, |
| Prog::MatchKind | kind, | ||
| int64_t | max_mem | ||
| ) |
Definition at line 437 of file bloaty/third_party/re2/re2/dfa.cc.
| re2::DFA::~DFA | ( | ) |
Definition at line 486 of file bloaty/third_party/re2/re2/dfa.cc.
| re2::DFA::DFA | ( | Prog * | prog, |
| Prog::MatchKind | kind, | ||
| int64_t | max_mem | ||
| ) |
| re2::DFA::~DFA | ( | ) |
Definition at line 833 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1646 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1717 of file bloaty/third_party/re2/re2/dfa.cc.
| int re2::DFA::BuildAllStates | ( | const Prog::DFAStateCallback & | cb | ) |
| int re2::DFA::BuildAllStates | ( | const Prog::DFAStateCallback & | cb | ) |
Definition at line 1932 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 317 of file re2/re2/dfa.cc.
Definition at line 334 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 747 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 799 of file bloaty/third_party/re2/re2/dfa.cc.
|
staticprivate |
|
staticprivate |
Definition at line 523 of file bloaty/third_party/re2/re2/dfa.cc.
|
staticprivate |
|
staticprivate |
Definition at line 507 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1598 of file bloaty/third_party/re2/re2/dfa.cc.
|
inlineprivate |
Definition at line 1327 of file re2/re2/dfa.cc.
|
inlineprivate |
Definition at line 1326 of file bloaty/third_party/re2/re2/dfa.cc.
|
inline |
Definition at line 76 of file re2/re2/dfa.cc.
|
inline |
Definition at line 82 of file bloaty/third_party/re2/re2/dfa.cc.
|
inline |
Definition at line 75 of file re2/re2/dfa.cc.
|
inline |
Definition at line 81 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 2010 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1170 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 1006 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 998 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 947 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 933 of file bloaty/third_party/re2/re2/dfa.cc.
| bool re2::DFA::Search | ( | const StringPiece & | text, |
| const StringPiece & | context, | ||
| bool | anchored, | ||
| bool | want_earliest_match, | ||
| bool | run_forward, | ||
| bool * | failed, | ||
| const char ** | ep, | ||
| SparseSet * | matches | ||
| ) |
| bool re2::DFA::Search | ( | const StringPiece & | text, |
| const StringPiece & | context, | ||
| bool | anchored, | ||
| bool | want_earliest_match, | ||
| bool | run_forward, | ||
| bool * | failed, | ||
| const char ** | ep, | ||
| SparseSet * | matches | ||
| ) |
Definition at line 1765 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1563 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1566 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1569 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1572 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1575 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1578 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1581 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
private |
Definition at line 1584 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 1589 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 817 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 609 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 341 of file re2/re2/dfa.cc.
|
private |
Definition at line 358 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 343 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 342 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 359 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 345 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 341 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 348 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 349 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 350 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 362 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 360 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
Definition at line 361 of file bloaty/third_party/re2/re2/dfa.cc.