diff options
author | Peng Wu <alexepico@gmail.com> | 2012-06-19 14:52:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-06-19 14:52:32 +0800 |
commit | 19fd61c47b7d3ecb116636a62a76668bbb38133e (patch) | |
tree | 65e2d270bbaa0db51e9da8976dc905e8f4255b7f | |
parent | 3120e3f3208f3b0c9e30a811102e0d2ea9c5e29e (diff) | |
download | libpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.tar.gz libpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.tar.xz libpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.zip |
add comments
-rw-r--r-- | src/pinyin.h | 19 | ||||
-rw-r--r-- | src/storage/phrase_index.h | 8 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index 43cec3e..53c557c 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -81,10 +81,29 @@ struct _pinyin_instance_t{ */ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir); +/** + * pinyin_load_phrase_library: + * @context: the pinyin context. + * @index: the phrase index to be loaded. + * @filename: the file name of the phrase index. + * @returns: whether the load succeeded. + * + * Load the sub phrase library of the index. + * + */ bool pinyin_load_phrase_library(pinyin_context_t * context, guint8 index, const char * filename); +/** + * pinyin_unload_phrase_library: + * @context: the pinyin context. + * @index: the phrase index to be unloaded. + * @returns: whether the unload succeeded. + * + * Unload the sub phrase library of the index. + * + */ bool pinyin_unload_phrase_library(pinyin_context_t * context, guint8 index); diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index 94c8820..f1e460c 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -708,6 +708,14 @@ public: return true; } + /** + * FacadePhraseIndex::create_sub_phrase: + * @index: the phrase index to be created. + * @returns: the result of the create operation. + * + * Create the sub phrase index. + * + */ int create_sub_phrase(guint8 index) { SubPhraseIndex * & sub_phrase = m_sub_phrase_indices[index]; if (sub_phrase) { |