From 01b200662b3706c071658103c1cc73ea307d685f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 4 Dec 2012 10:10:02 +0800 Subject: add comments --- src/pinyin.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/pinyin.h b/src/pinyin.h index fd4e43a..03f391f 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -513,11 +513,30 @@ bool pinyin_train(pinyin_instance_t * instance); */ bool pinyin_reset(pinyin_instance_t * instance); - +/** + * pinyin_get_chewing_string: + * @instance: the pinyin instance. + * @key: the chewing key. + * @utf8_str: the chewing string. + * @returns: whether the get operation is successful. + * + * Get the chewing string of the key. + * + */ bool pinyin_get_chewing_string(pinyin_instance_t * instance, ChewingKey * key, gchar ** utf8_str); +/** + * pinyin_get_pinyin_string: + * @instance: the pinyin instance. + * @key: the pinyin key. + * @utf8_str: the pinyin string. + * @returns: whether the get operation is successful. + * + * Get the pinyin string of the key. + * + */ bool pinyin_get_pinyin_string(pinyin_instance_t * instance, ChewingKey * key, gchar ** utf8_str); -- cgit