summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-23 15:08:12 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-23 15:08:12 +0800
commit3f4ee7e103cf12ed2aae4c088d0449c4a042b688 (patch)
tree58cd0be18e96ebadb8622ba7ed150ba01db66c79 /src/pinyin.h
parent6e86a814556844ab5a29f9881ef7a84fdd9cd443 (diff)
downloadlibpinyin-3f4ee7e103cf12ed2aae4c088d0449c4a042b688.tar.gz
libpinyin-3f4ee7e103cf12ed2aae4c088d0449c4a042b688.tar.xz
libpinyin-3f4ee7e103cf12ed2aae4c088d0449c4a042b688.zip
write pinyin_get_character_offset function
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index b15925a..de1be7c 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -898,6 +898,20 @@ bool pinyin_get_right_character_offset(pinyin_instance_t * instance,
size_t offset,
size_t * right);
+/**
+ * pinyin_get_character_offset:
+ * @instance: the pinyin instance.
+ * @offset: the lookup offset.
+ * @length: the character offset.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the character offset from the lookup offset.
+ *
+ */
+bool pinyin_get_character_offset(pinyin_instance_t * instance,
+ size_t offset,
+ size_t * length);
+
#if 0
/**
* pinyin_get_raw_full_pinyin: