diff options
-rw-r--r-- | src/libpinyin.ver | 4 | ||||
-rw-r--r-- | src/pinyin.h | 20 |
2 files changed, 10 insertions, 14 deletions
diff --git a/src/libpinyin.ver b/src/libpinyin.ver index db4cc20..9b7441c 100644 --- a/src/libpinyin.ver +++ b/src/libpinyin.ver @@ -25,8 +25,8 @@ LIBPINYIN { pinyin_parse_chewing; pinyin_parse_more_chewings; pinyin_in_chewing_keyboard; - pinyin_get_candidates; - pinyin_get_full_pinyin_candidates; + pinyin_guess_candidates; + pinyin_guess_full_pinyin_candidates; pinyin_choose_candidate; pinyin_free_candidates; pinyin_clear_constraint; diff --git a/src/pinyin.h b/src/pinyin.h index e8c46bf..3decd0e 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -365,32 +365,28 @@ size_t pinyin_parse_more_chewings(pinyin_instance_t * instance, bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance, const char key, const char ** symbol); /** - * pinyin_get_candidates: + * pinyin_guess_candidates: * @instance: the pinyin instance. * @offset: the offset in the pinyin keys. - * @candidates: The GArray of lookup_candidate_t candidates. * @returns: whether a list of tokens are gotten. * - * Get the candidates at the offset. + * Guess the candidates at the offset. * */ -bool pinyin_get_candidates(pinyin_instance_t * instance, - size_t offset, - CandidateVector candidates); +bool pinyin_guess_candidates(pinyin_instance_t * instance, + size_t offset); /** - * pinyin_get_full_pinyin_candidates: + * pinyin_guess_full_pinyin_candidates: * @instance: the pinyin instance. * @offset: the offset in the pinyin keys. - * @candidates: the GArray of lookup_candidate_t candidates. * @returns: whether a list of lookup_candidate_t candidates are gotten. * - * Get the full pinyin candidates at the offset. + * Guess the full pinyin candidates at the offset. * */ -bool pinyin_get_full_pinyin_candidates(pinyin_instance_t * instance, - size_t offset, - CandidateVector candidates); +bool pinyin_guess_full_pinyin_candidates(pinyin_instance_t * instance, + size_t offset); /** * pinyin_choose_candidate: |