virtual void SerializeToFile(FILE *fp) const
Serializes the dictionary and writes in to a file.
Definition TextDict.cpp:125
virtual LexiconPtr GetLexicon() const
Returns all entries in the dictionary.
Definition TextDict.cpp:123
TextDict(const LexiconPtr &_lexicon)
Constructor of TextDict.
Definition TextDict.cpp:81
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:111
virtual size_t KeyMaxLength() const
Returns the length of the longest key in the dictionary.
Definition TextDict.cpp:109
static TextDictPtr NewFromDict(const Dict &dict)
Constructs a TextDict from another dictionary.
Definition TextDict.cpp:105