Open Chinese Convert
1.0.1
A project for conversion between Traditional and Simplified Chinese
|
Binary dictionary for faster deserialization. More...
#include <BinaryDict.hpp>
Public Member Functions | |
BinaryDict (const LexiconPtr &_lexicon) | |
virtual void | SerializeToFile (FILE *fp) const |
Serializes the dictionary and writes in to a file. | |
const LexiconPtr & | GetLexicon () const |
size_t | KeyMaxLength () const |
Public Member Functions inherited from opencc::SerializableDict | |
virtual void | SerializeToFile (const string &fileName) const |
Serializes the dictionary and writes in to a file. | |
Static Public Member Functions | |
static BinaryDictPtr | NewFromFile (FILE *fp) |
Static Public Member Functions inherited from opencc::SerializableDict | |
template<typename DICT > | |
static bool | TryLoadFromFile (const string &fileName, std::shared_ptr< DICT > *dict) |
template<typename DICT > | |
static std::shared_ptr< DICT > | NewFromFile (const string &fileName) |
Binary dictionary for faster deserialization.