rename candidates methods
authorPeng Wu <alexepico@gmail.com>
Thu, 21 Mar 2013 02:15:22 +0000 (10:15 +0800)
committerPeng Wu <alexepico@gmail.com>
Thu, 21 Mar 2013 02:15:22 +0000 (10:15 +0800)
src/libpinyin.ver
src/pinyin.h

index db4cc205fcaf3e263b583c099ac9a1089ceca425..9b7441c1000c39242d206be750fedcd4976824d6 100644 (file)
@@ -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;
index e8c46bfb803e73bb42b985dddf6ac0daa39ea695..3decd0e30eed5b9d4d797469ad8d81cbc55eba79 100644 (file)
@@ -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: