diff options
author | Peng Wu <alexepico@gmail.com> | 2017-02-10 14:15:12 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-02-10 14:15:12 +0800 |
commit | 012308bb33c81978617d91aef7352c2e5dd966a4 (patch) | |
tree | 5137d9f882f4e9d8ca914330f656c639657cee63 /src/pinyin.h | |
parent | 809efb9334e6b8644c8c5bfb180ab32fe8648825 (diff) | |
download | libpinyin-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.h | 14 |
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. |