librime: rime::StringTableBuilder Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | List of all members
rime::StringTableBuilder Class Reference

`#include <string_table.h>`

Inheritance diagram for rime::StringTableBuilder:
[legend]
Collaboration diagram for rime::StringTableBuilder:
[legend]

## Public Member Functions
void | Add (const string &key, double weight=1.0, StringId *reference=nullptr)
void | Clear ()
void | Build ()
void | Dump (char *ptr, size_t size)
Public Member Functions inherited from rime::StringTable
| StringTable ()=default
virtual | ~StringTable ()=default
| StringTable (const char *ptr, size_t size)
bool | HasKey (const string &key)
StringId | Lookup (const string &key)
void | CommonPrefixMatch (const string &query, vector< StringId > *result)
void | Predict (const string &query, vector< StringId > *result)
string | GetString (StringId string_id)
size_t | NumKeys () const
size_t | BinarySize () const

## Additional Inherited Members
Protected Attributes inherited from rime::StringTable
marisa::Trie | trie_

## Member Function Documentation

## ◆ Add()

void rime::StringTableBuilder::Add | ( | const string & | key,
|  | double | weight = 1.0,
|  | StringId * | reference = nullptr )

## ◆ Build()

void rime::StringTableBuilder::Build | ( |  | ) |

## ◆ Clear()

void rime::StringTableBuilder::Clear | ( |  | ) |

## ◆ Dump()

void rime::StringTableBuilder::Dump | ( | char * | ptr,
|  | size_t | size )

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

- string_table.h
- string_table.cc