69 using Match = Darts::DoubleArray::result_pair_type;
76 const Script* script =
nullptr,
84 vector<Match>* result,
#define RIME_DLL
Definition rime_api.h:33
DoubleArrayImpl< void, void, int, void > DoubleArray
Definition darts.h:316
set< string > Syllabary
Definition vocabulary.h:17
std::unique_ptr< T > the
Definition common.h:58
int32_t SyllableId
Definition syllabifier.h:21
List< SpellingDescriptor > SpellingMapItem
Definition prism.h:32
Array< SpellingMapItem > SpellingMap
Definition prism.h:33
float Credibility
Definition prism.h:22
Definition mapped_file.h:22
Definition mapped_file.h:53
Definition mapped_file.h:61
Definition mapped_file.h:71
const path & file_path() const
Definition mapped_file.h:121
MappedFile(const path &file_path)
Definition mapped_file.cc:46
Credibility credibility
Definition prism.h:28
int32_t type
Definition prism.h:27
SyllableId syllable_id
Definition prism.h:25
String tips
Definition prism.h:29
char format[kFormatMaxLength]
Definition prism.h:37
OffsetPtr< char > double_array
Definition prism.h:43
uint32_t num_syllables
Definition prism.h:40
static const int kFormatMaxLength
Definition prism.h:36
uint32_t num_spellings
Definition prism.h:41
OffsetPtr< SpellingMap > spelling_map
Definition prism.h:45
uint32_t schema_file_checksum
Definition prism.h:39
uint32_t dict_file_checksum
Definition prism.h:38
uint32_t double_array_size
Definition prism.h:42
char alphabet[256]
Definition prism.h:46
SyllableId syllable_id() const
Definition prism.cc:59
SyllableId spelling_id_
Definition prism.h:60
SpellingProperties properties() const
Definition prism.cc:66
bool exhausted() const
Definition prism.cc:55
prism::SpellingDescriptor * end_
Definition prism.h:62
SpellingAccessor(prism::SpellingMap *spelling_map, SyllableId spelling_id)
Definition prism.cc:37
bool Next()
Definition prism.cc:47
prism::SpellingDescriptor * iter_
Definition prism.h:61
uint32_t dict_file_checksum() const
Definition prism.cc:334
Darts::DoubleArray & trie() const
Definition prism.h:92
RIME_DLL void ExpandSearch(const string &key, vector< Match > *result, size_t limit)
Definition prism.cc:282
RIME_DLL size_t array_size() const
Definition prism.cc:330
RIME_DLL bool Build(const Syllabary &syllabary, const Script *script=nullptr, uint32_t dict_file_checksum=0, uint32_t schema_file_checksum=0)
Definition prism.cc:139
the< Darts::DoubleArray > trie_
Definition prism.h:95
prism::SpellingMap * spelling_map_
Definition prism.h:97
RIME_DLL bool Load()
Definition prism.cc:82
uint32_t schema_file_checksum() const
Definition prism.cc:338
Darts::DoubleArray::result_pair_type Match
Definition prism.h:69
RIME_DLL bool Save()
Definition prism.cc:131
RIME_DLL void CommonPrefixSearch(const string &key, vector< Match > *result)
Definition prism.cc:272
RIME_DLL bool HasKey(const string &key)
Definition prism.cc:256
RIME_DLL Prism(const path &file_path)
Definition prism.cc:79
SpellingAccessor QuerySpelling(SyllableId spelling_id)
Definition prism.cc:326
RIME_DLL bool GetValue(const string &key, int *value) const
Definition prism.cc:261
double format_
Definition prism.h:98
prism::Metadata * metadata_
Definition prism.h:96