diff options
author | Peng Wu <alexepico@gmail.com> | 2014-08-19 14:00:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-08-19 14:01:46 +0800 |
commit | 1108075bafc92feed92d268f425d410de4c8f705 (patch) | |
tree | 90649a5698e6af4096452ecfe276f59399b7ce02 /src/pinyin.h | |
parent | e0a7f7052c3a7b8fa268c68c5f1f87bfc0b149e4 (diff) | |
download | libpinyin-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.h | 25 |
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. |