summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-13 15:31:54 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-13 15:31:54 +0800
commit3b07d6126db7834386bf1aab160a3642340730ef (patch)
tree09c5ab1936d887220d44a8c241035771f9db9366 /src/pinyin.h
parent5e45e62467c4d55a724c6c9058653a88fe61f21c (diff)
downloadlibpinyin-3b07d6126db7834386bf1aab160a3642340730ef.tar.gz
libpinyin-3b07d6126db7834386bf1aab160a3642340730ef.tar.xz
libpinyin-3b07d6126db7834386bf1aab160a3642340730ef.zip
fixes compile
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 26ffb81..b15925a 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -870,10 +870,30 @@ bool pinyin_get_pinyin_offset(pinyin_instance_t * instance,
size_t cursor,
size_t * offset);
+/**
+ * pinyin_get_left_character_offset:
+ * @instance: the pinyin instance.
+ * @offset: the lookup offset.
+ * @left: the left offset.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the left offset from the lookup offset.
+ *
+ */
bool pinyin_get_left_character_offset(pinyin_instance_t * instance,
size_t offset,
size_t * left);
+/**
+ * pinyin_get_right_character_offset:
+ * @instance: the pinyin instance.
+ * @offset: the lookup offset.
+ * @right: the right offset.
+ * @returns: whether the get operation is successful.
+ *
+ * Get the right offset from the lookup offset.
+ *
+ */
bool pinyin_get_right_character_offset(pinyin_instance_t * instance,
size_t offset,
size_t * right);