summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-13 11:44:21 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-13 11:44:21 +0800
commit7cdbdbeea60b77c717f1ce7db45541c83d2ec01e (patch)
tree693f324471dda53964f7e2c7bd707d4a965d9cb7 /src/pinyin.h
parent22df46aee568d025e8fb5680bc3c4dc6bfa84829 (diff)
downloadlibpinyin-7cdbdbeea60b77c717f1ce7db45541c83d2ec01e.tar.gz
libpinyin-7cdbdbeea60b77c717f1ce7db45541c83d2ec01e.tar.xz
libpinyin-7cdbdbeea60b77c717f1ce7db45541c83d2ec01e.zip
add back pinyin_clear_constraint
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index a28b850..40d9d3d 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -446,6 +446,18 @@ bool pinyin_free_candidates(pinyin_instance_t * instance,
CandidateVector candidates);
/**
+* pinyin_clear_constraint:
+* @instance: the pinyin instance.
+* @offset: the offset in the pinyin keys.
+* @returns: whether the constraint is cleared.
+*
+* Clear the previous chosen candidate.
+*
+*/
+bool pinyin_clear_constraint(pinyin_instance_t * instance,
+ size_t offset);
+
+/**
* pinyin_lookup_tokens:
* @instance: the pinyin instance.
* @phrase: the phrase to be looked up.