Click
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
SimpleDFA Class Reference

#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
 

Detailed Description

Greedy DFA, creates as many patterns as there are letters in the patterns. Limited to 65536 characters.


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