Dillo
|
#include <hyphenator.hh>
Classes | |
struct | TrieNode |
Public Member Functions | |
Trie (TrieNode *array=NULL, int size=0, bool freeArray=false, lout::misc::ZoneAllocator *dataZone=NULL) | |
~Trie () | |
bool | validState (int state) |
const char * | getData (unsigned char c, int *state) |
void | save (FILE *file) |
int | load (FILE *file) |
Static Public Attributes | |
static const int | root = 0 |
Private Attributes | |
TrieNode * | array |
int | size |
bool | freeArray |
lout::misc::ZoneAllocator * | dataZone |
dw::Trie::Trie | ( | TrieNode * | array = NULL , |
int | size = 0 , |
||
bool | freeArray = false , |
||
lout::misc::ZoneAllocator * | dataZone = NULL |
||
) |
dw::Trie::~Trie | ( | ) |
|
inline |
References dw::Trie::TrieNode::c, dw::Trie::TrieNode::data, dw::Trie::TrieNode::next, and validState().
int dw::Trie::load | ( | FILE * | file | ) |
void dw::Trie::save | ( | FILE * | file | ) |
References dw::Trie::TrieNode::c, dw::Trie::TrieNode::data, and dw::Trie::TrieNode::next.
Referenced by dw::Hyphenator::saveTrie().
|
private |
|
private |
|
private |
|
static |
|
private |
Referenced by validState().