virtual void SerializeToFile(FILE *fp) const
Serializes the dictionary and writes in to a file.
Definition TextDict.cpp:91
virtual LexiconPtr GetLexicon() const
Returns all entries in the dictionary.
Definition TextDict.cpp:89
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:77
virtual size_t KeyMaxLength() const
Returns the length of the longest key in the dictionary.
Definition TextDict.cpp:75
static TextDictPtr NewFromDict(const Dict &dict)
Constructs a TextDict from another dictionary.
Definition TextDict.cpp:71