librime 1.2
Rime Input Method Engine, the core library
rime::Line Struct Reference
Collaboration diagram for rime::Line:

Classes

struct  Components

Public Member Functions

bool empty () const
string last_word () const
Components components () const
string context () const
vector< size_t > word_lengths () const

Public Attributes

const Linepredecessor
const DictEntryentry
size_t end_pos
double weight
size_t text_hash

Static Public Attributes

static const Line kEmpty {nullptr, nullptr, 0, 0.0, 0}

Member Function Documentation

◆ components()

Components rime::Line::components ( ) const
inline

◆ context()

string rime::Line::context ( ) const
inline

◆ empty()

bool rime::Line::empty ( ) const
inline

◆ last_word()

string rime::Line::last_word ( ) const
inline

◆ word_lengths()

vector< size_t > rime::Line::word_lengths ( ) const
inline

Member Data Documentation

◆ end_pos

size_t rime::Line::end_pos

◆ entry

const DictEntry* rime::Line::entry

◆ kEmpty

const Line rime::Line::kEmpty {nullptr, nullptr, 0, 0.0, 0}
static

◆ predecessor

const Line* rime::Line::predecessor

◆ text_hash

size_t rime::Line::text_hash

◆ weight

double rime::Line::weight

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