summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-10 14:15:12 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-10 14:15:12 +0800
commit012308bb33c81978617d91aef7352c2e5dd966a4 (patch)
tree5137d9f882f4e9d8ca914330f656c639657cee63 /src/pinyin.h
parent809efb9334e6b8644c8c5bfb180ab32fe8648825 (diff)
downloadlibpinyin-012308bb33c81978617d91aef7352c2e5dd966a4.tar.gz
libpinyin-012308bb33c81978617d91aef7352c2e5dd966a4.tar.xz
libpinyin-012308bb33c81978617d91aef7352c2e5dd966a4.zip
write pinyin_get_candidate_nbest_index function
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 07ca2fc..7ebb82f 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -790,6 +790,20 @@ bool pinyin_get_candidate_string(pinyin_instance_t * instance,
const gchar ** utf8_str);
/**
+ * pinyin_get_candidate_nbest_index:
+ * @instance: the pinyin instance.
+ * @candidate: the lookup candidate.
+ * @index: the index of the nbest result.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the nbest index of the candidate.
+ *
+ */
+bool pinyin_get_candidate_nbest_index(pinyin_instance_t * instance,
+ lookup_candidate_t * candidate,
+ guint8 * index);
+
+/**
* pinyin_get_pinyin_key:
* @instance: the pinyin instance.
* @offset: the offset of the pinyin key.