libime
Public Member Functions | Friends | List of all members
libime::TableBasedDictionary Class Reference
Inheritance diagram for libime::TableBasedDictionary:
Inheritance graph
[legend]
Collaboration diagram for libime::TableBasedDictionary:
Collaboration graph
[legend]

Public Member Functions

 TableBasedDictionary (const TableBasedDictionary &other)=delete
 
void load (const char *filename, TableFormat format=TableFormat::Binary)
 
void load (std::istream &in, TableFormat format=TableFormat::Binary)
 
void save (const char *filename, TableFormat format=TableFormat::Binary)
 
void save (std::ostream &out, TableFormat format=TableFormat::Binary)
 
void loadUser (const char *filename, TableFormat format=TableFormat::Binary)
 
void loadUser (std::istream &in, TableFormat format=TableFormat::Binary)
 
void saveUser (const char *filename, TableFormat format=TableFormat::Binary)
 
void saveUser (std::ostream &out, TableFormat format=TableFormat::Binary)
 
size_t loadExtra (const char *filename, TableFormat format=TableFormat::Binary)
 
size_t loadExtra (std::istream &in, TableFormat format=TableFormat::Binary)
 
void saveExtra (size_t index, const char *filename, TableFormat format=TableFormat::Binary)
 
void saveExtra (size_t index, std::ostream &out, TableFormat format=TableFormat::Binary)
 
void removeAllExtra ()
 
bool hasRule () const noexcept
 
bool hasCustomPrompt () const noexcept
 
const TableRulefindRule (std::string_view name) const
 
bool insert (std::string_view key, std::string_view value, PhraseFlag flag=PhraseFlag::None, bool verifyWithRule=false)
 
bool insert (std::string_view value, PhraseFlag flag=PhraseFlag::None)
 
bool generate (std::string_view value, std::string &key) const
 
bool generateWithHint (std::string_view value, const std::vector< std::string > &codeHint, std::string &key) const
 
bool isInputCode (uint32_t c) const
 
bool isAllInputCode (std::string_view code) const
 
bool isEndKey (uint32_t c) const
 
bool hasPinyin () const
 
uint32_t maxLength () const
 
bool isValidLength (size_t length) const
 
void statistic () const
 
void setTableOptions (TableOptions option)
 
const TableOptionstableOptions () const
 
bool matchWords (std::string_view code, TableMatchMode mode, const TableMatchCallback &callback) const
 
bool hasMatchingWords (std::string_view code) const
 
bool hasMatchingWords (std::string_view code, std::string_view next) const
 
bool hasOneMatchingWord (std::string_view code) const
 
PhraseFlag wordExists (std::string_view code, std::string_view word) const
 
void removeWord (std::string_view code, std::string_view word)
 
std::string reverseLookup (std::string_view word, PhraseFlag flag=PhraseFlag::None) const
 
std::string hint (std::string_view key) const
 
 FCITX_DECLARE_SIGNAL (TableBasedDictionary, tableOptionsChanged, void())
 
- Public Member Functions inherited from libime::Dictionary
void matchPrefix (const SegmentGraph &graph, const GraphMatchCallback &callback, const std::unordered_set< const SegmentGraphNode *> &ignore={}, void *helper=nullptr) const
 

Friends

class TableContextPrivate
 

Additional Inherited Members

Detailed Description

Definition at line 50 of file tablebaseddictionary.h.


The documentation for this class was generated from the following files: