|
Dillo v3.2.0-93-g6a586845
|
#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 |
Definition at line 10 of file hyphenator.hh.
| dw::Trie::Trie | ( | TrieNode * | array = NULL, |
| int | size = 0, |
||
| bool | freeArray = false, |
||
| lout::misc::ZoneAllocator * | dataZone = NULL |
||
| ) |
| dw::Trie::~Trie | ( | ) |
Definition at line 538 of file hyphenator.cc.
|
inline |
Definition at line 31 of file hyphenator.hh.
References array, dw::Trie::TrieNode::c, dw::Trie::TrieNode::data, dw::Trie::TrieNode::next, and validState().
Referenced by dw::Hyphenator::hyphenateSingleWord().
| int dw::Trie::load | ( | FILE * | file | ) |
Definition at line 557 of file hyphenator.cc.
References array, dataZone, lout::misc::SimpleVector< T >::detachArray(), error(), freeArray, lout::misc::SimpleVector< T >::getLastRef(), lout::misc::SimpleVector< T >::increase(), LEN, size, lout::misc::SimpleVector< T >::size(), and lout::misc::ZoneAllocator::strdup().
Referenced by dw::Hyphenator::Hyphenator().
| void dw::Trie::save | ( | FILE * | file | ) |
Definition at line 545 of file hyphenator.cc.
References array, dw::Trie::TrieNode::c, dw::Trie::TrieNode::data, dw::Trie::TrieNode::next, and size.
Referenced by dw::Hyphenator::saveTrie().
|
inline |
Definition at line 30 of file hyphenator.hh.
References size.
Referenced by getData(), and dw::Hyphenator::hyphenateSingleWord().
|
private |
|
private |
Definition at line 22 of file hyphenator.hh.
|
private |
Definition at line 21 of file hyphenator.hh.
|
static |
Definition at line 29 of file hyphenator.hh.
Referenced by dw::Hyphenator::hyphenateSingleWord().
|
private |
Definition at line 20 of file hyphenator.hh.
Referenced by load(), save(), Trie(), and validState().