summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-28 14:47:38 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-28 14:47:38 +0800
commit3dab1052e5a3b8177812a2dcba238aa1011d95bd (patch)
tree62a88621d18af3a7d1aaf9b5ba5646396b744d0a
parent0291a9206f0a8c1f0171f78bb67ae4e0adedb80e (diff)
downloadlibpinyin-3dab1052e5a3b8177812a2dcba238aa1011d95bd.tar.gz
libpinyin-3dab1052e5a3b8177812a2dcba238aa1011d95bd.tar.xz
libpinyin-3dab1052e5a3b8177812a2dcba238aa1011d95bd.zip
add comments
-rw-r--r--src/pinyin.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 5800768..a7d5c31 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -107,14 +107,41 @@ bool pinyin_load_phrase_library(pinyin_context_t * context,
bool pinyin_unload_phrase_library(pinyin_context_t * context,
guint8 index);
+/**
+ * pinyin_begin_add_phrases:
+ * @context: the pinyin context.
+ * @index: the phrase index to be imported.
+ * @returns: the import iterator.
+ *
+ * Begin to add phrases.
+ *
+ */
import_iterator_t * pinyin_begin_add_phrases(pinyin_context_t * context,
guint8 index);
+/**
+ * pinyin_iterator_add_phrase:
+ * @iter: the import iterator.
+ * @phrase: the phrase string.
+ * @pinyin: the pinyin string.
+ * @count: the count of the phrase/pinyin pair, -1 to use the default value.
+ * @returns: whether the add operation succeeded.
+ *
+ * Add a pair of phrase and pinyin with count.
+ *
+ */
bool pinyin_iterator_add_phrase(import_iterator_t * iter,
const char * phrase,
const char * pinyin,
gint count);
+/**
+ * pinyin_end_add_phrases:
+ * @iter: the import iterator.
+ *
+ * End adding phrases.
+ *
+ */
void pinyin_end_add_phrases(import_iterator_t * iter);
/**