|
librime 1.2
Rime Input Method Engine, the core library
|
#include <prism.h>


Public Types | |
| using | Match = Darts::DoubleArray::result_pair_type |
Public Member Functions | |
| RIME_DLL | Prism (const path &file_path) |
| RIME_DLL bool | Load () |
| RIME_DLL bool | Save () |
| RIME_DLL bool | Build (const Syllabary &syllabary, const Script *script=nullptr, uint32_t dict_file_checksum=0, uint32_t schema_file_checksum=0) |
| RIME_DLL bool | HasKey (const string &key) |
| RIME_DLL bool | GetValue (const string &key, int *value) const |
| RIME_DLL void | CommonPrefixSearch (const string &key, vector< Match > *result) |
| RIME_DLL void | ExpandSearch (const string &key, vector< Match > *result, size_t limit) |
| SpellingAccessor | QuerySpelling (SyllableId spelling_id) |
| RIME_DLL size_t | array_size () const |
| uint32_t | dict_file_checksum () const |
| uint32_t | schema_file_checksum () const |
| Darts::DoubleArray & | trie () const |
| Public Member Functions inherited from rime::MappedFile | |
| MappedFile (const MappedFile &)=delete | |
| MappedFile & | operator= (const MappedFile &)=delete |
| bool | Exists () const |
| bool | IsOpen () const |
| void | Close () |
| bool | Remove () |
| template<class T> | |
| T * | Find (size_t offset) |
| const path & | file_path () const |
| size_t | file_size () const |
Protected Attributes | |
| the< Darts::DoubleArray > | trie_ |
| prism::Metadata * | metadata_ = nullptr |
| prism::SpellingMap * | spelling_map_ = nullptr |
| double | format_ = 0.0 |
Additional Inherited Members | |
| Protected Member Functions inherited from rime::MappedFile | |
| MappedFile (const path &file_path) | |
| virtual | ~MappedFile () |
| bool | Create (size_t capacity) |
| bool | OpenReadOnly () |
| bool | OpenReadWrite () |
| bool | Flush () |
| bool | Resize (size_t capacity) |
| bool | ShrinkToFit () |
| template<class T> | |
| T * | Allocate (size_t count=1) |
| template<class T> | |
| Array< T > * | CreateArray (size_t array_size) |
| String * | CreateString (const string &str) |
| bool | CopyString (const string &src, String *dest) |
| size_t | capacity () const |
| char * | address () const |
| using rime::Prism::Match = Darts::DoubleArray::result_pair_type |
|
explicit |
| size_t rime::Prism::array_size | ( | ) | const |
| bool rime::Prism::Build | ( | const Syllabary & | syllabary, |
| const Script * | script = nullptr, | ||
| uint32_t | dict_file_checksum = 0, | ||
| uint32_t | schema_file_checksum = 0 ) |
| void rime::Prism::CommonPrefixSearch | ( | const string & | key, |
| vector< Match > * | result ) |
| uint32_t rime::Prism::dict_file_checksum | ( | ) | const |
| void rime::Prism::ExpandSearch | ( | const string & | key, |
| vector< Match > * | result, | ||
| size_t | limit ) |
| bool rime::Prism::GetValue | ( | const string & | key, |
| int * | value ) const |
| bool rime::Prism::HasKey | ( | const string & | key | ) |
| bool rime::Prism::Load | ( | ) |
| SpellingAccessor rime::Prism::QuerySpelling | ( | SyllableId | spelling_id | ) |
| bool rime::Prism::Save | ( | ) |
| uint32_t rime::Prism::schema_file_checksum | ( | ) | const |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |