|
librime 1.2
Rime Input Method Engine, the core library
|
Namespaces | |
| namespace | algo |
| namespace | corrector |
| namespace | dictionary |
| namespace | filesystem |
| namespace | prism |
| namespace | reverse |
| namespace | strings |
| namespace | table |
Typedefs | |
| using | Vertex = pair<size_t, SpellingType> |
| using | VertexQueue |
| using | SyllableId = int32_t |
| using | SpellingMap = map<SyllableId, EdgeProperties> |
| using | VertexMap = map<size_t, SpellingType> |
| using | EndVertexMap = map<size_t, SpellingMap> |
| using | EdgeMap = map<size_t, EndVertexMap> |
| using | SpellingPropertiesList = vector<const EdgeProperties*> |
| using | SpellingIndex = map<SyllableId, SpellingPropertiesList> |
| using | SpellingIndices = map<size_t, SpellingIndex> |
| using | CandidateQueue = list<of<Candidate>> |
| using | CandidateList = vector<of<Candidate>> |
| template<class Key, class T> | |
| using | hash_map = boost::unordered_map<Key, T> |
| template<class T> | |
| using | hash_set = boost::unordered_set<T> |
| template<class T> | |
| using | the = std::unique_ptr<T> |
| template<class T> | |
| using | an = std::shared_ptr<T> |
| template<class T> | |
| using | of = an<T> |
| template<class T> | |
| using | weak = std::weak_ptr<T> |
| using | TaskInitializer = std::any |
| using | DictEntryCollector = map<size_t, DictEntryIterator> |
| using | WeightMap = map<string, double> |
| using | WordMap = hash_map<string, vector<pair<string, double>>> |
| using | EncodeQueue = std::queue<pair<string, string>> |
| using | StringId = std::uint32_t |
| using | TableQueryResult = map<int, vector<TableAccessor>> |
| using | TextDbData = map<string, string> |
| using | Tsv = vector<string> |
| using | TsvParser = function<bool(const Tsv& row, string* key, string* value)> |
| using | TsvFormatter |
| using | TickCount = uint64_t |
| using | UserDictEntryCollector = map<size_t, UserDictEntryIterator> |
| using | Syllabary = set<string> |
| using | DictEntryFilter = function<bool(an<DictEntry> entry)> |
| using | ReverseLookupTable = hash_map<string, set<string>> |
| using | AsciiModeSwitchKeyBindings = map<int , AsciiModeSwitchStyle> |
| using | Chord = set<int> |
| using | LineCandidates = hash_map<string, Line> |
| using | UpdateLineCandidate = function<void(const Line& candidate)> |
| using | WordGraph = map<int, map<int, DictEntryList>> |
| using | SwitchOption = Switches::SwitchOption |
| using | UserDictList = vector<string> |
| using | SessionId = uintptr_t |
| using | NotificationHandler |
Enumerations | |
| enum | SpellingType { kNormalSpelling , kFuzzySpelling , kAbbreviation , kCompletion , kAmbiguousSpelling , kInvalidSpelling } |
| enum | DependencyPriority { kPendingChild = 0 , kInclude = 1 , kPatch = 2 } |
| enum | AsciiModeSwitchStyle { kAsciiModeSwitchNoop , kAsciiModeSwitchInline , kAsciiModeSwitchCommitText , kAsciiModeSwitchCommitCode , kAsciiModeSwitchClear , kAsciiModeSet , kAsciiModeUnset } |
| enum | KeyBindingCondition { kNever , kWhenPredicting , kWhenPaging , kWhenHasMenu , kWhenComposing , kAlways } |
| enum | ProcessResult { kRejected , kAccepted , kNoop } |
Functions | |
| int | CompareVersionString (const string &x, const string &y) |
| uint32_t | Checksum (const path &file_path) |
| template<class X, class Y> | |
| an< X > | As (const an< Y > &ptr) |
| template<class X, class Y> | |
| bool | Is (const an< Y > &ptr) |
| template<class T, class... Args> | |
| an< T > | New (Args &&... args) |
| std::ostream & | operator<< (std::ostream &stream, const Reference &reference) |
| std::ostream & | operator<< (std::ostream &stream, const Dependency &dependency) |
| an< ConfigItemRef > | TypeCheckedCopyOnWrite (an< ConfigItemRef > parent, const string &key) |
| an< ConfigItemRef > | TraverseCopyOnWrite (an< ConfigItemRef > head, const string &path) |
| an< ConfigItemRef > | Cow (an< ConfigItemRef > parent, string key) |
| an< ConfigItem > | ConvertFromYaml (const YAML::Node &yaml_node, ConfigCompiler *compiler) |
| void | EmitYaml (an< ConfigItem > node, YAML::Emitter *emitter, int depth) |
| void | EmitScalar (const string &str_value, YAML::Emitter *emitter) |
| template<class SinkType> | |
| int | operator<< (SinkType &sink, TsvReader &reader) |
| template<class SinkType> | |
| int | operator>> (TsvReader &reader, SinkType &sink) |
| template<class SourceType> | |
| int | operator<< (TsvWriter &writer, SourceType &source) |
| template<class SourceType> | |
| int | operator>> (SourceType &source, TsvWriter &writer) |
| template<class T> | |
| bool | dereference_less (const T &a, const T &b) |
| template<typename C> | |
| void | sort (C &container) |
| template<typename C> | |
| void | sort_range (C &container, size_t start, size_t count) |
| template<typename T> | |
| void | CreateComponentsFromList (Engine *engine, Config *config, const string &config_key, const string &component_type, vector< an< T > > &target_collection) |
| bool | is_extended_cjk (uint32_t ch) |
| bool | contains_extended_cjk (const string &text) |
| an< Candidate > | CreatePunctCandidate (const string &punct, const Segment &segment) |
| std::ostream & | operator<< (std::ostream &out, const KeyEvent &key_event) |
| std::ostream & | operator<< (std::ostream &out, const KeySequence &key_seq) |
| std::ostream & | operator<< (std::ostream &out, const Segmentation &segmentation) |
| RIME_DLL | RIME_MODULE_LIST (kDefaultModules, "default" RIME_EXTRA_MODULES) |
| RIME_DLL | RIME_MODULE_LIST (kDeployerModules, "deployer") |
| RIME_MODULE_LIST (kLegacyModules, "legacy") | |
| RIME_DLL void | LoadModules (const char *module_names[]) |
| RIME_DLL void | SetupDeployer (RimeTraits *traits) |
| RIME_DLL void | SetupLogging (const char *app_name, int min_log_level, const char *log_dir) |
| RIME_DLL void | SetupLogging (const char *app_name) |
| an< UnionTranslation > | operator+ (an< Translation > x, an< Translation > y) |
| template<class T, class... Args> | |
| an< Translation > | Cached (Args &&... args) |
Variables | |
| const double | kAbbreviationPenalty = -0.6931471805599453 |
| const double | kFuzzySpellingPenalty = -0.6931471805599453 |
| const double | kCorrectionPenalty = -4.605170185988091 |
| const double | kCompletionPenalty = -2.995732273553991 |
| const double | kCorrectionCredibility = -4.605170185988091 |
| const string | kSelectedBeforeEditing = "selected_before_editing" |
| const char | kPrismFormat [] = "Rime::Prism/4.0" |
| const double | kPrismFormatVersion = 4.0 |
| const char | kPrismFormatPrefix [] = "Rime::Prism/" |
| const size_t | kPrismFormatPrefixLen = sizeof(kPrismFormatPrefix) - 1 |
| const char | kDefaultAlphabet [] = "abcdefghijklmnopqrstuvwxyz" |
| const char | kReverseFormat [] = "Rime::Reverse/3.1" |
| const double | kReverseFormatCompatible = 3.0 |
| const char | kReverseFormatPrefix [] = "Rime::Reverse/" |
| const size_t | kReverseFormatPrefixLen = sizeof(kReverseFormatPrefix) - 1 |
| const StringId | kInvalidStringId = (StringId)(-1) |
| const char | kTableFormatLatest [] = "Rime::Table/4.0" |
| const int | kTableFormatLowestCompatible = 4.0 |
| const char | kTableFormatPrefix [] = "Rime::Table/" |
| const size_t | kTableFormatPrefixLen = sizeof(kTableFormatPrefix) - 1 |
| const double | kPenaltyForAmbiguousSyllable = -2.995732274 |
| const int | kContextualSearchLimit = 32 |
| template<class T, int N> | |
| const KeyBindingProcessor< T, N >::ActionDef | KeyBindingProcessor< T, N >::kActionNoop = {"noop", nullptr} |
| RIME_DLL const char * | kDefaultModules [] |
| RIME_DLL const char * | kDeployerModules [] |
| const char * | kLegacyModules [] |
| using rime::an = std::shared_ptr<T> |
| using rime::AsciiModeSwitchKeyBindings = map<int , AsciiModeSwitchStyle> |
| using rime::CandidateList = vector<of<Candidate>> |
| using rime::CandidateQueue = list<of<Candidate>> |
| using rime::Chord = set<int> |
| using rime::DictEntryCollector = map<size_t, DictEntryIterator> |
| using rime::DictEntryFilter = function<bool(an<DictEntry> entry)> |
| using rime::EdgeMap = map<size_t, EndVertexMap> |
| using rime::EncodeQueue = std::queue<pair<string, string>> |
| using rime::EndVertexMap = map<size_t, SpellingMap> |
| using rime::hash_map = boost::unordered_map<Key, T> |
| using rime::hash_set = boost::unordered_set<T> |
| using rime::LineCandidates = hash_map<string, Line> |
| using rime::ReverseLookupTable = hash_map<string, set<string>> |
| using rime::SessionId = uintptr_t |
| using rime::SpellingIndex = map<SyllableId, SpellingPropertiesList> |
| using rime::SpellingIndices = map<size_t, SpellingIndex> |
| using rime::SpellingMap = map<SyllableId, EdgeProperties> |
| using rime::SpellingPropertiesList = vector<const EdgeProperties*> |
| using rime::StringId = std::uint32_t |
| using rime::Syllabary = set<string> |
| using rime::SyllableId = int32_t |
| using rime::TableQueryResult = map<int, vector<TableAccessor>> |
| using rime::TaskInitializer = std::any |
| using rime::TextDbData = map<string, string> |
| using rime::the = std::unique_ptr<T> |
| using rime::TickCount = uint64_t |
| using rime::Tsv = vector<string> |
| using rime::TsvFormatter |
| using rime::TsvParser = function<bool(const Tsv& row, string* key, string* value)> |
| using rime::UpdateLineCandidate = function<void(const Line& candidate)> |
| using rime::UserDictEntryCollector = map<size_t, UserDictEntryIterator> |
| using rime::UserDictList = vector<string> |
| using rime::Vertex = pair<size_t, SpellingType> |
| using rime::VertexMap = map<size_t, SpellingType> |
| using rime::VertexQueue |
| using rime::weak = std::weak_ptr<T> |
| using rime::WeightMap = map<string, double> |
| using rime::WordGraph = map<int, map<int, DictEntryList>> |
| using rime::WordMap = hash_map<string, vector<pair<string, double>>> |
| enum rime::ProcessResult |
| enum rime::SpellingType |
|
inline |
|
inline |
| int rime::CompareVersionString | ( | const string & | x, |
| const string & | y ) |
| bool rime::contains_extended_cjk | ( | const string & | text | ) |
| an< ConfigItem > rime::ConvertFromYaml | ( | const YAML::Node & | yaml_node, |
| ConfigCompiler * | compiler ) |
|
inline |
|
inline |
|
inline |
| void rime::EmitScalar | ( | const string & | str_value, |
| YAML::Emitter * | emitter ) |
| void rime::EmitYaml | ( | an< ConfigItem > | node, |
| YAML::Emitter * | emitter, | ||
| int | depth ) |
|
inline |
| bool rime::is_extended_cjk | ( | uint32_t | ch | ) |
| RIME_DLL void rime::LoadModules | ( | const char * | module_names[] | ) |
|
inline |
| an< UnionTranslation > rime::operator+ | ( | an< Translation > | x, |
| an< Translation > | y ) |
| int rime::operator<< | ( | SinkType & | sink, |
| TsvReader & | reader ) |
|
inline |
|
inline |
| std::ostream & rime::operator<< | ( | std::ostream & | out, |
| const Segmentation & | segmentation ) |
| std::ostream & rime::operator<< | ( | std::ostream & | stream, |
| const Dependency & | dependency ) |
| std::ostream & rime::operator<< | ( | std::ostream & | stream, |
| const Reference & | reference ) |
| int rime::operator<< | ( | TsvWriter & | writer, |
| SourceType & | source ) |
| int rime::operator>> | ( | SourceType & | source, |
| TsvWriter & | writer ) |
| int rime::operator>> | ( | TsvReader & | reader, |
| SinkType & | sink ) |
| RIME_DLL rime::RIME_MODULE_LIST | ( | kDefaultModules | , |
| "default" | RIME_EXTRA_MODULES ) |
| RIME_DLL rime::RIME_MODULE_LIST | ( | kDeployerModules | , |
| "deployer" | ) |
| rime::RIME_MODULE_LIST | ( | kLegacyModules | , |
| "legacy" | ) |
| RIME_DLL void rime::SetupDeployer | ( | RimeTraits * | traits | ) |
| RIME_DLL void rime::SetupLogging | ( | const char * | app_name | ) |
| RIME_DLL void rime::SetupLogging | ( | const char * | app_name, |
| int | min_log_level, | ||
| const char * | log_dir ) |
|
inline |
|
inline |
| an< ConfigItemRef > rime::TraverseCopyOnWrite | ( | an< ConfigItemRef > | head, |
| const string & | path ) |
| an< ConfigItemRef > rime::TypeCheckedCopyOnWrite | ( | an< ConfigItemRef > | parent, |
| const string & | key ) |
| const double rime::kAbbreviationPenalty = -0.6931471805599453 |
| const double rime::kCompletionPenalty = -2.995732273553991 |
| const int rime::kContextualSearchLimit = 32 |
| const double rime::kCorrectionCredibility = -4.605170185988091 |
| const double rime::kCorrectionPenalty = -4.605170185988091 |
| const char rime::kDefaultAlphabet[] = "abcdefghijklmnopqrstuvwxyz" |
|
extern |
|
extern |
| const KeyBindingProcessor<T,N>::ActionDef rime::KeyBindingProcessor< T, N >::kActionNoop = {"noop", nullptr} |
| const double rime::kFuzzySpellingPenalty = -0.6931471805599453 |
|
extern |
| const double rime::kPenaltyForAmbiguousSyllable = -2.995732274 |
| const char rime::kPrismFormat[] = "Rime::Prism/4.0" |
| const char rime::kPrismFormatPrefix[] = "Rime::Prism/" |
| const size_t rime::kPrismFormatPrefixLen = sizeof(kPrismFormatPrefix) - 1 |
| const double rime::kPrismFormatVersion = 4.0 |
| const char rime::kReverseFormat[] = "Rime::Reverse/3.1" |
| const double rime::kReverseFormatCompatible = 3.0 |
| const char rime::kReverseFormatPrefix[] = "Rime::Reverse/" |
| const size_t rime::kReverseFormatPrefixLen = sizeof(kReverseFormatPrefix) - 1 |
| const string rime::kSelectedBeforeEditing = "selected_before_editing" |
| const char rime::kTableFormatLatest[] = "Rime::Table/4.0" |
| const int rime::kTableFormatLowestCompatible = 4.0 |
| const char rime::kTableFormatPrefix[] = "Rime::Table/" |
| const size_t rime::kTableFormatPrefixLen = sizeof(kTableFormatPrefix) - 1 |