summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-08-19 14:00:18 +0800
committerPeng Wu <alexepico@gmail.com>2014-08-19 14:01:46 +0800
commit1108075bafc92feed92d268f425d410de4c8f705 (patch)
tree90649a5698e6af4096452ecfe276f59399b7ce02 /src/pinyin.h
parente0a7f7052c3a7b8fa268c68c5f1f87bfc0b149e4 (diff)
downloadlibpinyin-1108075bafc92feed92d268f425d410de4c8f705.tar.gz
libpinyin-1108075bafc92feed92d268f425d410de4c8f705.tar.xz
libpinyin-1108075bafc92feed92d268f425d410de4c8f705.zip
add pinyin_get_pinyin_key_rest_offset function
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index bf3898a..17a2743 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -350,6 +350,17 @@ size_t pinyin_parse_more_chewings(pinyin_instance_t * instance,
const char * chewings);
/**
+ * pinyin_get_parsed_input_length:
+ * @instance: the pinyin instance.
+ * @returns: the parsed_length of the input.
+ *
+ * Get the parsed length of the input.
+ *
+ */
+size_t pinyin_get_parsed_input_length(pinyin_instance_t * instance);
+
+
+/**
* pinyin_in_chewing_keyboard:
* @instance: the pinyin instance.
* @key: the input key.
@@ -697,6 +708,20 @@ bool pinyin_get_pinyin_key_rest_length(pinyin_instance_t * instance,
guint16 * length);
/**
+ * pinyin_get_pinyin_key_rest_offset:
+ * @instance: the pinyin instance.
+ * @cursor: the cursor.
+ * @offset: the offset in the pinyin array.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the offset in the pinyin key array.
+ *
+ */
+bool pinyin_get_pinyin_key_rest_offset(pinyin_instance_t * instance,
+ guint16 cursor,
+ guint16 * offset);
+
+/**
* pinyin_get_raw_full_pinyin:
* @instance: the pinyin instance.
* @utf8_str: the modified raw full pinyin after choose candidate.