|
Click
|
#include <simpledfa.hh>
Public Types | |
| typedef uint16_t | state_t |
| typedef NextState | StateSet |
Public Member Functions | |
| Vector< StateSet > | compile (String pattern) |
| int | add_pattern (String pattern) |
| void | attach (Vector< StateSet > c_pattern, state_t state, NextState nt, int pos) |
| void | create_states (Vector< StateSet > c_pattern, int place) |
| void | next (const unsigned char &c, state_t &state) |
| void | next_chunk (const unsigned char *&c, const int &size, state_t &state) |
| void | print (Vector< NextState > v) |
Static Public Attributes | |
| static const int | _verbose = 0 |
| static const uint16_t | MATCHED = (uint16_t)-1 |
Greedy DFA, creates as many patterns as there are letters in the patterns. Limited to 65536 characters.