virtual void SerializeToFile(FILE *fp) const
Serializes the dictionary and writes in to a file.
Definition TextDict.cpp:80
virtual LexiconPtr GetLexicon() const
Returns all entries in the dictionary.
Definition TextDict.cpp:78
TextDict(const LexiconPtr &_lexicon)
Constructor of TextDict.
Definition TextDict.cpp:36
virtual Optional< const DictEntry * > Match(const char *word, size_t len) const
Matches a word exactly and returns the DictEntry or Optional::Null().
Definition TextDict.cpp:66
virtual size_t KeyMaxLength() const
Returns the length of the longest key in the dictionary.
Definition TextDict.cpp:64
static TextDictPtr NewFromDict(const Dict &dict)
Constructs a TextDict from another dictionary.
Definition TextDict.cpp:60