diff options
author | Peng Wu <alexepico@gmail.com> | 2015-10-16 13:24:07 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-10-16 13:24:07 +0800 |
commit | ac96a6ee83d172561628e0e7cbdd71deb9f6f04f (patch) | |
tree | e255fbfbb53cf0669cd55cdc35df877a27e340fc | |
parent | 5c07a9c2ba8e12eadffa0f2c569334947193ca91 (diff) | |
download | libpinyin-ac96a6ee83d172561628e0e7cbdd71deb9f6f04f.tar.gz libpinyin-ac96a6ee83d172561628e0e7cbdd71deb9f6f04f.tar.xz libpinyin-ac96a6ee83d172561628e0e7cbdd71deb9f6f04f.zip |
update pinyin_in_chewing_keyboard method
-rw-r--r-- | src/pinyin.cpp | 4 | ||||
-rw-r--r-- | src/pinyin.h | 5 |
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. |