summaryrefslogtreecommitdiffstats
path: root/src/zhuyin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zhuyin.h')
-rw-r--r--src/zhuyin.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/zhuyin.h b/src/zhuyin.h
index 44c383a..53b79ef 100644
--- a/src/zhuyin.h
+++ b/src/zhuyin.h
@@ -42,6 +42,7 @@ typedef struct _import_iterator_t import_iterator_t;
typedef enum _lookup_candidate_type_t{
BEST_MATCH_CANDIDATE = 1,
NORMAL_CANDIDATE_AFTER_CURSOR,
+ NORMAL_CANDIDATE_BEFORE_CURSOR,
ZOMBIE_CANDIDATE
} lookup_candidate_type_t;
@@ -344,6 +345,18 @@ bool zhuyin_guess_candidates_after_cursor(zhuyin_instance_t * instance,
size_t offset);
/**
+ * zhuyin_guess_candidates_before_cursor:
+ * @instance: the zhuyin instance.
+ * @offset: the offset in the pinyin keys.
+ * @returns: whether a list of tokens are gotten.
+ *
+ * Guess the candidates at the offset.
+ *
+ */
+bool zhuyin_guess_candidates_before_cursor(zhuyin_instance_t * instance,
+ size_t offset);
+
+/**
* zhuyin_choose_candidate:
* @instance: the zhuyin instance.
* @offset: the offset in the pinyin keys.