summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-28 15:13:49 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-28 15:13:49 +0800
commit433353d0063be4ea5527261bd403ad8bd06bd93e (patch)
treeeb95b50aee06579f9d4d816ffc504498b5bde600 /src/pinyin.h
parentba1cd11a6ccf5ff85aa3a5df6deffd5097f12898 (diff)
downloadlibpinyin-433353d0063be4ea5527261bd403ad8bd06bd93e.tar.gz
libpinyin-433353d0063be4ea5527261bd403ad8bd06bd93e.tar.xz
libpinyin-433353d0063be4ea5527261bd403ad8bd06bd93e.zip
update pinyin_get/choose_candidates
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index a7d5c31..63464eb 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -362,7 +362,7 @@ bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
* pinyin_get_candidates:
* @instance: the pinyin instance.
* @offset: the offset in the pinyin keys.
- * @candidates: The GArray of token candidates.
+ * @candidates: The GArray of lookup_candidate_t candidates.
* @returns: whether a list of tokens are gotten.
*
* Get the candidates at the offset.
@@ -370,7 +370,7 @@ bool pinyin_in_chewing_keyboard(pinyin_instance_t * instance,
*/
bool pinyin_get_candidates(pinyin_instance_t * instance,
size_t offset,
- TokenVector candidates);
+ CandidateVector candidates);
/**
* pinyin_get_full_pinyin_candidates:
@@ -390,7 +390,7 @@ bool pinyin_get_full_pinyin_candidates(pinyin_instance_t * instance,
* pinyin_choose_candidate:
* @instance: the pinyin instance.
* @offset: the offset in the pinyin keys.
- * @token: the selected candidate.
+ * @candidate: the selected candidate.
* @returns: the cursor after the chosen candidate.
*
* Choose an candidate at the offset.
@@ -398,13 +398,13 @@ bool pinyin_get_full_pinyin_candidates(pinyin_instance_t * instance,
*/
int pinyin_choose_candidate(pinyin_instance_t * instance,
size_t offset,
- phrase_token_t token);
+ lookup_candidate_t * candidate);
/**
* pinyin_choose_full_pinyin_candidate:
* @instance: the pinyin instance.
* @offset: the offset in the pinyin keys.
- * @candidate: the selected lookup_candidate_t candidate.
+ * @candidate: the selected candidate.
* @returns: the cursor after the chosen candidate.
*
* Choose a full pinyin candidate at the offset.