summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 5cac776..35a7dc8 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1711,6 +1711,16 @@ bool pinyin_free_candidates(pinyin_instance_t * instance,
return true;
}
+bool pinyin_clear_constraint(pinyin_instance_t * instance,
+ size_t offset){
+ pinyin_context_t * & context = instance->m_context;
+
+ bool retval = context->m_pinyin_lookup->clear_constraint
+ (instance->m_constraints, offset);
+
+ return retval;
+}
+
bool pinyin_lookup_tokens(pinyin_instance_t * instance,
const char * phrase, GArray * tokenarray){
pinyin_context_t * & context = instance->m_context;