diff options
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index 9599aab..d29011b 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -1008,6 +1008,31 @@ bool pinyin_remember_user_input(pinyin_instance_t * instance, const char * phrase, gint count); +/** + * pinyin_is_user_candidate: + * @instance: the pinyin instance. + * @candidate: the lookup candidate. + * @returns: whether the candidate is user candidate. + * + * Check whether the candidate is user candidate. + * + */ +bool pinyin_is_user_candidate(pinyin_instance_t * instance, + lookup_candidate_t * candidate); + +/** + * pinyin_remove_user_candidate: + * @instance: the pinyin instance. + * @candidate: the lookup candidate. + * @returns: whether the remove operation is successful. + * + * Remove the user candidate from dictionary. + * + */ +bool pinyin_remove_user_candidate(pinyin_instance_t * instance, + lookup_candidate_t * candidate); + + /* for compatibility. */ typedef ChewingKey PinyinKey; |