From 12b885acfccf4baf897368abdbf15de42342ef2f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 4 Aug 2015 11:13:06 +0800 Subject: rename zhuyin_guess_candidates to zhuyin_guess_candidates_after_cursor --- src/zhuyin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zhuyin.cpp') diff --git a/src/zhuyin.cpp b/src/zhuyin.cpp index 68b6269..8bd86eb 100644 --- a/src/zhuyin.cpp +++ b/src/zhuyin.cpp @@ -77,7 +77,7 @@ struct _lookup_candidate_t{ guint32 m_freq; /* the amplifed gfloat numerical value. */ public: _lookup_candidate_t() { - m_candidate_type = NORMAL_CANDIDATE; + m_candidate_type = NORMAL_CANDIDATE_AFTER_CURSOR; m_phrase_string = NULL; m_token = null_token; m_new_pinyins = NULL; @@ -1175,7 +1175,7 @@ static bool _compute_phrase_strings_of_items(zhuyin_instance_t * instance, g_free(sentence); break; } - case NORMAL_CANDIDATE: + case NORMAL_CANDIDATE_AFTER_CURSOR: zhuyin_token_get_phrase (instance, candidate->m_token, NULL, &(candidate->m_phrase_string)); @@ -1294,8 +1294,8 @@ static bool _free_candidates(CandidateVector candidates) { return true; } -bool zhuyin_guess_candidates(zhuyin_instance_t * instance, - size_t offset) { +bool zhuyin_guess_candidates_after_cursor(zhuyin_instance_t * instance, + size_t offset) { zhuyin_context_t * & context = instance->m_context; pinyin_option_t & options = context->m_options; -- cgit