|
Open Chinese Convert 1.1.8
A project for conversion between Traditional and Simplified Chinese
|
Storage of all entries. More...
#include <Lexicon.hpp>
Public Member Functions | |
| Lexicon (std::vector< std::unique_ptr< DictEntry > > entries_) | |
| Lexicon (const Lexicon &)=delete | |
| Lexicon & | operator= (const Lexicon &)=delete |
| void | Add (DictEntry *entry) |
| void | Add (std::unique_ptr< DictEntry > entry) |
| void | Sort () |
| bool | IsSorted () |
| bool | IsUnique (std::string *dupkey=nullptr) |
| const DictEntry * | At (size_t index) const |
| size_t | Length () const |
| std::vector< std::unique_ptr< DictEntry > >::const_iterator | begin () const |
| std::vector< std::unique_ptr< DictEntry > >::const_iterator | end () const |
Static Public Member Functions | |
| static LexiconPtr | ParseLexiconFromFile (FILE *fp) |
Storage of all entries.