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