summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
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.