summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-19 15:04:30 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-19 15:05:14 +0800
commit1a663eac6e9dcd16375690d9ab54f51bf02c83b7 (patch)
treedd903459badc5009f97f9270dadf079953b079c5 /src/pinyin.h
parent595692374597ac71f0f39ea2444ea9d80c2a6184 (diff)
downloadlibpinyin-1a663eac6e9dcd16375690d9ab54f51bf02c83b7.tar.gz
libpinyin-1a663eac6e9dcd16375690d9ab54f51bf02c83b7.tar.xz
libpinyin-1a663eac6e9dcd16375690d9ab54f51bf02c83b7.zip
rename pinyin_lookup_token to pinyin_lookup_tokens
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 ac8468a..0634b2b 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -438,17 +438,17 @@ bool pinyin_clear_constraint(pinyin_instance_t * instance,
bool pinyin_clear_constraints(pinyin_instance_t * instance);
/**
- * pinyin_lookup_token:
+ * pinyin_lookup_tokens:
* @instance: the pinyin instance.
* @phrase: the phrase to be looked up.
- * @token: the returned phrase token.
+ * @tokenarray: the returned GArray of tokens.
* @returns: whether the lookup operation is successful.
*
- * Lookup the token for the phrase utf8 string.
+ * Lookup the tokens for the phrase utf8 string.
*
*/
-bool pinyin_lookup_token(pinyin_instance_t * instance,
- const char * phrase, phrase_token_t * token);
+bool pinyin_lookup_tokens(pinyin_instance_t * instance,
+ const char * phrase, GArray * tokenarray);
/**
* pinyin_translate_token: