summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pinyin.cpp4
-rw-r--r--src/pinyin.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 17869ea..5f0506a 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1309,10 +1309,10 @@ size_t pinyin_get_parsed_input_length(pinyin_instance_t * instance) {
}
bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
- const char key, const char ** symbol) {
+ const char key, gchar *** symbols) {
pinyin_context_t * & context = instance->m_context;
return context->m_chewing_parser->in_chewing_scheme
- (context->m_options, key, symbol);
+ (context->m_options, key, *symbol);
}
static bool _token_get_phrase(FacadePhraseIndex * phrase_index,
diff --git a/src/pinyin.h b/src/pinyin.h
index 95c7499..1b2e5ea 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -458,14 +458,15 @@ size_t pinyin_get_parsed_input_length(pinyin_instance_t * instance);
* pinyin_in_chewing_keyboard:
* @instance: the pinyin instance.
* @key: the input key.
- * @symbol: the chewing symbol.
+ * @symbol: the zhuyin symbols must be freed by g_strfreev.
* @returns: whether the key is in current chewing scheme.
*
* Check whether the input key is in current chewing scheme.
*
*/
bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
- const char key, const char ** symbol);
+ const char key, gchar *** symbols);
+
/**
* pinyin_guess_candidates:
* @instance: the pinyin instance.