summaryrefslogtreecommitdiffstats
path: root/src/zhuyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-08 13:46:15 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-08 16:22:17 +0800
commitcac4f26d0fa03fd133e5d247a9989cd19e847c11 (patch)
tree2e46d12251153d93d43be86696734632685bda6b /src/zhuyin.h
parenta9ef80b97764405047f93c4c4cca75ff898b35b5 (diff)
downloadlibzhuyin-cac4f26d0fa03fd133e5d247a9989cd19e847c11.tar.gz
libzhuyin-cac4f26d0fa03fd133e5d247a9989cd19e847c11.tar.xz
libzhuyin-cac4f26d0fa03fd133e5d247a9989cd19e847c11.zip
add function zhuyin_get_zhuyin_key_rest_offset0.9.99.20140718
Diffstat (limited to 'src/zhuyin.h')
-rw-r--r--src/zhuyin.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/zhuyin.h b/src/zhuyin.h
index 398b8d0..24128eb 100644
--- a/src/zhuyin.h
+++ b/src/zhuyin.h
@@ -619,7 +619,7 @@ bool zhuyin_get_zhuyin_key_rest_positions(zhuyin_instance_t * instance,
* @length: the length of the corresponding pinyin key.
* @returns: whether the get operation is successful.
*
- * Get the length of the corresponding pinyin key.
+ * Get the length of the corresponding zhuyin key.
*
*/
bool zhuyin_get_zhuyin_key_rest_length(zhuyin_instance_t * instance,
@@ -627,6 +627,20 @@ bool zhuyin_get_zhuyin_key_rest_length(zhuyin_instance_t * instance,
guint16 * length);
/**
+ * zhuyin_get_zhuyin_key_rest_offset:
+ * @instance: the zhuyin instance.
+ * @cursor: the cursor.
+ * @offset: the offset in the zhuyin array.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the offset in the zhuyin key array.
+ *
+ */
+bool zhuyin_get_zhuyin_key_rest_offset(zhuyin_instance_t * instance,
+ guint16 cursor,
+ guint16 * offset);
+
+/**
* zhuyin_get_raw_full_pinyin:
* @instance: the zhuyin instance.
* @utf8_str: the modified raw full pinyin after choose candidate.