22#include "SerializableDict.hpp"
49 static DartsDictPtr NewFromFile(FILE* fp);
58 DartsInternal* internal;
static DartsDictPtr NewFromDict(const Dict &thatDict)
Constructs a DartsDict from another dictionary.
Definition DartsDict.cpp:135
virtual Optional< const DictEntry * > MatchPrefix(const char *word, size_t len) const
Matches the longest matched prefix of a word.
Definition DartsDict.cpp:72
virtual void SerializeToFile(FILE *fp) const
Serializes the dictionary and writes in to a file.
Definition DartsDict.cpp:160
virtual size_t KeyMaxLength() const
Returns the length of the longest key in the dictionary.
Definition DartsDict.cpp:53
virtual Optional< const DictEntry * > Match(const char *word, size_t len) const
Matches a word exactly and returns the DictEntry or Optional::Null().
Definition DartsDict.cpp:55
virtual LexiconPtr GetLexicon() const
Returns all entries in the dictionary.
Definition DartsDict.cpp:100
Abstract class of dictionary.
Definition Dict.hpp:29
A class that wraps type T into a nullable type.
Definition Optional.hpp:26
Serializable dictionary interface.
Definition SerializableDict.hpp:28