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