#include <prog.h>
Classes | |
class | Inst |
Public Types | |
enum | Anchor { kUnanchored, kAnchored, kUnanchored, kAnchored } |
enum | Anchor { kUnanchored, kAnchored, kUnanchored, kAnchored } |
using | DFAStateCallback = std::function< void(const int *next, bool match)> |
using | DFAStateCallback = std::function< void(const int *next, bool match)> |
enum | MatchKind { kFirstMatch, kLongestMatch, kFullMatch, kManyMatch, kFirstMatch, kLongestMatch, kFullMatch, kManyMatch } |
enum | MatchKind { kFirstMatch, kLongestMatch, kFullMatch, kManyMatch, kFirstMatch, kLongestMatch, kFullMatch, kManyMatch } |
Static Public Member Functions | |
static Prog * | CompileSet (Regexp *re, RE2::Anchor anchor, int64_t max_mem) |
static Prog * | CompileSet (Regexp *re, RE2::Anchor anchor, int64_t max_mem) |
static uint32_t | EmptyFlags (const StringPiece &context, const char *p) |
static uint32_t | EmptyFlags (const StringPiece &context, const char *p) |
static bool | IsWordChar (uint8_t c) |
static bool | IsWordChar (uint8_t c) |
static void | TEST_dfa_should_bail_when_slow (bool b) |
static void | TESTING_ONLY_set_dfa_should_bail_when_slow (bool b) |
Static Public Attributes | |
static const int | kMaxOnePassCapture = 5 |
Private Member Functions | |
void | DeleteDFA (DFA *dfa) |
void | DeleteDFA (DFA *dfa) |
DFA * | GetDFA (MatchKind kind) |
DFA * | GetDFA (MatchKind kind) |
Prog & | operator= (const Prog &)=delete |
Prog & | operator= (const Prog &)=delete |
Prog (const Prog &)=delete | |
Prog (const Prog &)=delete | |
Private Attributes | |
union { | |
struct { | |
int prefix_back_ | |
int prefix_front_ | |
} | |
uint64_t * prefix_dfa_ | |
}; | |
bool | anchor_end_ |
bool | anchor_start_ |
uint8_t | bytemap_ [256] |
int | bytemap_range_ |
DFA * | dfa_first_ |
std::once_flag | dfa_first_once_ |
DFA * | dfa_longest_ |
std::once_flag | dfa_longest_once_ |
int64_t | dfa_mem_ |
bool | did_flatten_ |
bool | did_onepass_ |
int | first_byte_ |
std::once_flag | first_byte_once_ |
int | flags_ |
PODArray< Inst > | inst_ |
int | inst_count_ [kNumInst] |
int | list_count_ |
PODArray< uint16_t > | list_heads_ |
PODArray< uint8_t > | onepass_nodes_ |
bool | prefix_foldcase_ |
size_t | prefix_size_ |
bool | reversed_ |
int | size_ |
int | start_ |
int | start_unanchored_ |
Friends | |
class | Compiler |
Definition at line 56 of file bloaty/third_party/re2/re2/prog.h.
using re2::Prog::DFAStateCallback = std::function<void(const int* next, bool match)> |
Definition at line 283 of file bloaty/third_party/re2/re2/prog.h.
using re2::Prog::DFAStateCallback = std::function<void(const int* next, bool match)> |
Definition at line 303 of file re2/re2/prog.h.
enum re2::Prog::Anchor |
Enumerator | |
---|---|
kUnanchored | |
kAnchored | |
kUnanchored | |
kAnchored |
Definition at line 175 of file bloaty/third_party/re2/re2/prog.h.
enum re2::Prog::Anchor |
Enumerator | |
---|---|
kUnanchored | |
kAnchored | |
kUnanchored | |
kAnchored |
Definition at line 175 of file re2/re2/prog.h.
enum re2::Prog::MatchKind |
Enumerator | |
---|---|
kFirstMatch | |
kLongestMatch | |
kFullMatch | |
kManyMatch | |
kFirstMatch | |
kLongestMatch | |
kFullMatch | |
kManyMatch |
Definition at line 192 of file re2/re2/prog.h.
enum re2::Prog::MatchKind |
Enumerator | |
---|---|
kFirstMatch | |
kLongestMatch | |
kFullMatch | |
kManyMatch | |
kFirstMatch | |
kLongestMatch | |
kFullMatch | |
kManyMatch |
Definition at line 192 of file bloaty/third_party/re2/re2/prog.h.
re2::Prog::Prog | ( | ) |
Definition at line 102 of file bloaty/third_party/re2/re2/prog.cc.
re2::Prog::~Prog | ( | ) |
Definition at line 120 of file bloaty/third_party/re2/re2/prog.cc.
re2::Prog::Prog | ( | ) |
re2::Prog::~Prog | ( | ) |
|
inline |
Definition at line 214 of file re2/re2/prog.h.
|
inline |
Definition at line 216 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 212 of file re2/re2/prog.h.
|
inline |
Definition at line 214 of file bloaty/third_party/re2/re2/prog.h.
int re2::Prog::BuildEntireDFA | ( | MatchKind | kind, |
const DFAStateCallback & | cb | ||
) |
Definition at line 2000 of file bloaty/third_party/re2/re2/dfa.cc.
int re2::Prog::BuildEntireDFA | ( | MatchKind | kind, |
const DFAStateCallback & | cb | ||
) |
Definition at line 217 of file re2/re2/prog.h.
Definition at line 219 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 216 of file re2/re2/prog.h.
|
inline |
Definition at line 218 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 218 of file re2/re2/prog.h.
|
inline |
Definition at line 317 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 329 of file re2/re2/prog.h.
|
static |
Definition at line 1275 of file bloaty/third_party/re2/re2/compile.cc.
|
static |
void re2::Prog::ComputeByteMap | ( | ) |
Definition at line 446 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::ComputeByteMap | ( | ) |
int re2::Prog::ComputeFirstByte | ( | ) |
Definition at line 617 of file bloaty/third_party/re2/re2/nfa.cc.
Definition at line 844 of file bloaty/third_party/re2/re2/prog.cc.
Definition at line 1005 of file re2/re2/prog.cc.
|
private |
Definition at line 1847 of file bloaty/third_party/re2/re2/dfa.cc.
|
private |
|
inline |
Definition at line 210 of file re2/re2/prog.h.
|
inline |
Definition at line 211 of file bloaty/third_party/re2/re2/prog.h.
std::string re2::Prog::Dump | ( | ) |
Definition at line 157 of file bloaty/third_party/re2/re2/prog.cc.
std::string re2::Prog::Dump | ( | ) |
std::string re2::Prog::DumpByteMap | ( | ) |
Definition at line 175 of file bloaty/third_party/re2/re2/prog.cc.
std::string re2::Prog::DumpByteMap | ( | ) |
std::string re2::Prog::DumpUnanchored | ( | ) |
Definition at line 166 of file bloaty/third_party/re2/re2/prog.cc.
std::string re2::Prog::DumpUnanchored | ( | ) |
void re2::Prog::EmitList | ( | int | root, |
SparseArray< int > * | rootmap, | ||
std::vector< Inst > * | flat, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
Definition at line 774 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::EmitList | ( | int | root, |
SparseArray< int > * | rootmap, | ||
std::vector< Inst > * | flat, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
|
static |
Definition at line 287 of file bloaty/third_party/re2/re2/prog.cc.
|
static |
void re2::Prog::Fanout | ( | SparseArray< int > * | fanout | ) |
Definition at line 705 of file bloaty/third_party/re2/re2/nfa.cc.
void re2::Prog::Fanout | ( | SparseArray< int > * | fanout | ) |
int re2::Prog::first_byte | ( | ) |
Definition at line 188 of file bloaty/third_party/re2/re2/prog.cc.
|
inline |
Definition at line 212 of file bloaty/third_party/re2/re2/prog.h.
void re2::Prog::Flatten | ( | ) |
Definition at line 557 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::Flatten | ( | ) |
Definition at line 1818 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 199 of file re2/re2/prog.h.
Definition at line 199 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 208 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 208 of file re2/re2/prog.h.
bool re2::Prog::IsOnePass | ( | ) |
Definition at line 384 of file bloaty/third_party/re2/re2/onepass.cc.
bool re2::Prog::IsOnePass | ( | ) |
Definition at line 240 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 260 of file re2/re2/prog.h.
|
inline |
Definition at line 207 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 207 of file re2/re2/prog.h.
|
inline |
Definition at line 209 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 209 of file re2/re2/prog.h.
void re2::Prog::MarkDominator | ( | int | root, |
SparseArray< int > * | rootmap, | ||
SparseArray< int > * | predmap, | ||
std::vector< std::vector< int >> * | predvec, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
Definition at line 710 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::MarkDominator | ( | int | root, |
SparseArray< int > * | rootmap, | ||
SparseArray< int > * | predmap, | ||
std::vector< std::vector< int >> * | predvec, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
void re2::Prog::MarkSuccessors | ( | SparseArray< int > * | rootmap, |
SparseArray< int > * | predmap, | ||
std::vector< std::vector< int >> * | predvec, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
Definition at line 646 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::MarkSuccessors | ( | SparseArray< int > * | rootmap, |
SparseArray< int > * | predmap, | ||
std::vector< std::vector< int >> * | predvec, | ||
SparseSet * | reachable, | ||
std::vector< int > * | stk | ||
) |
void re2::Prog::Optimize | ( | ) |
Definition at line 198 of file bloaty/third_party/re2/re2/prog.cc.
void re2::Prog::Optimize | ( | ) |
Definition at line 2147 of file bloaty/third_party/re2/re2/dfa.cc.
Definition at line 222 of file re2/re2/prog.h.
Definition at line 1121 of file re2/re2/prog.cc.
Definition at line 1024 of file re2/re2/prog.cc.
|
inline |
Definition at line 205 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 205 of file re2/re2/prog.h.
bool re2::Prog::SearchBitState | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
Definition at line 350 of file bloaty/third_party/re2/re2/bitstate.cc.
bool re2::Prog::SearchBitState | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
bool re2::Prog::SearchDFA | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match0, | ||
bool * | failed, | ||
SparseSet * | matches | ||
) |
Definition at line 1861 of file bloaty/third_party/re2/re2/dfa.cc.
bool re2::Prog::SearchDFA | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match0, | ||
bool * | failed, | ||
SparseSet * | matches | ||
) |
bool re2::Prog::SearchNFA | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
Definition at line 677 of file bloaty/third_party/re2/re2/nfa.cc.
bool re2::Prog::SearchNFA | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
bool re2::Prog::SearchOnePass | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
Definition at line 214 of file bloaty/third_party/re2/re2/onepass.cc.
bool re2::Prog::SearchOnePass | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
|
inline |
Definition at line 215 of file re2/re2/prog.h.
|
inline |
Definition at line 217 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 213 of file re2/re2/prog.h.
|
inline |
Definition at line 215 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 210 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 211 of file re2/re2/prog.h.
|
inline |
Definition at line 213 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 206 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 206 of file re2/re2/prog.h.
|
inline |
Definition at line 201 of file re2/re2/prog.h.
|
inline |
Definition at line 202 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 203 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 203 of file re2/re2/prog.h.
|
inline |
Definition at line 204 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 204 of file re2/re2/prog.h.
|
inline |
Definition at line 200 of file re2/re2/prog.h.
|
inline |
Definition at line 200 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 201 of file bloaty/third_party/re2/re2/prog.h.
|
inline |
Definition at line 202 of file re2/re2/prog.h.
|
static |
Definition at line 2004 of file bloaty/third_party/re2/re2/dfa.cc.
|
static |
Definition at line 59 of file re2/re2/dfa.cc.
bool re2::Prog::UnsafeSearchBacktrack | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
Definition at line 245 of file bloaty/third_party/re2/re2/testing/backtrack.cc.
bool re2::Prog::UnsafeSearchBacktrack | ( | const StringPiece & | text, |
const StringPiece & | context, | ||
Anchor | anchor, | ||
MatchKind | kind, | ||
StringPiece * | match, | ||
int | nmatch | ||
) |
|
friend |
Definition at line 390 of file bloaty/third_party/re2/re2/prog.h.
union { ... } |
|
private |
Definition at line 396 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 395 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 420 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 404 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 417 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 423 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 418 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 424 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 416 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 398 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 399 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 405 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 422 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 406 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 413 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 409 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 322 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 408 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 410 of file bloaty/third_party/re2/re2/prog.h.
Definition at line 414 of file bloaty/third_party/re2/re2/prog.h.
int re2::Prog::prefix_back_ |
Definition at line 428 of file re2/re2/prog.h.
uint64_t* re2::Prog::prefix_dfa_ |
Definition at line 425 of file re2/re2/prog.h.
|
private |
Definition at line 422 of file re2/re2/prog.h.
int re2::Prog::prefix_front_ |
Definition at line 427 of file re2/re2/prog.h.
|
private |
Definition at line 423 of file re2/re2/prog.h.
|
private |
Definition at line 397 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 403 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 401 of file bloaty/third_party/re2/re2/prog.h.
|
private |
Definition at line 402 of file bloaty/third_party/re2/re2/prog.h.