summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 1097b7f..f4a20fe 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -421,6 +421,13 @@ size_t pinyin_parse_more_chewings(pinyin_instance_t * instance,
return parse_len;
}
+bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
+ const char key, const char ** symbol) {
+ pinyin_context_t * & context = instance->m_context;
+ return context->m_chewing_parser->in_chewing_scheme(key, symbol);
+}
+
+
/* internal definition */
typedef struct {
pinyin_context_t * m_context;