librime 1.2
Rime Input Method Engine, the core library
rime::DictEntry Struct Reference

#include <vocabulary.h>

Inheritance diagram for rime::DictEntry:
Collaboration diagram for rime::DictEntry:

Public Member Functions

 DictEntry ()=default
ShortDictEntry ToShort () const
bool IsExactMatch () const
bool IsPredictiveMatch () const
bool operator< (const DictEntry &other) const

Public Attributes

string text
string comment
string preedit
Code code
string custom_code
double weight = 0.0
double quality_len = 0.0
int commit_count = 0
int remaining_code_length = 0
int matching_code_size = 0

Constructor & Destructor Documentation

◆ DictEntry()

rime::DictEntry::DictEntry ( )
default

Member Function Documentation

◆ IsExactMatch()

bool rime::DictEntry::IsExactMatch ( ) const
inline

◆ IsPredictiveMatch()

bool rime::DictEntry::IsPredictiveMatch ( ) const
inline

◆ operator<()

bool rime::DictEntry::operator< ( const DictEntry & other) const

◆ ToShort()

ShortDictEntry rime::DictEntry::ToShort ( ) const
inline

Member Data Documentation

◆ code

Code rime::DictEntry::code

◆ comment

string rime::DictEntry::comment

◆ commit_count

int rime::DictEntry::commit_count = 0

◆ custom_code

string rime::DictEntry::custom_code

◆ matching_code_size

int rime::DictEntry::matching_code_size = 0

◆ preedit

string rime::DictEntry::preedit

◆ quality_len

double rime::DictEntry::quality_len = 0.0

◆ remaining_code_length

int rime::DictEntry::remaining_code_length = 0

◆ text

string rime::DictEntry::text

◆ weight

double rime::DictEntry::weight = 0.0

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