*/
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);
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) {