summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-04-17 13:58:33 +0800
committerPeng Wu <alexepico@gmail.com>2013-04-17 14:16:14 +0800
commite13055bcabe4fa7d91c79f9938d55147990d1ec4 (patch)
treee9056b114cb276ffd9bc1fa51be797334846cc0a /src
parent4d1083b728818d89c8547fee6dcfc09a8c67abec (diff)
downloadlibpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.tar.gz
libpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.tar.xz
libpinyin-e13055bcabe4fa7d91c79f9938d55147990d1ec4.zip
write merge_sequence function
Diffstat (limited to 'src')
-rw-r--r--src/storage/phrase_large_table2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index 34bb12d..d92fa0e 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -118,7 +118,7 @@ public:
static inline int reduce_tokens(const PhraseTokens tokens,
- GArray * tokenarray) {
+ TokenVector tokenarray) {
int num = 0;
g_array_set_size(tokenarray, 0);
@@ -143,7 +143,7 @@ static inline int get_first_token(const PhraseTokens tokens,
/* out */ phrase_token_t & token){
token = null_token;
- GArray * tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t));
+ TokenVector tokenarray = g_array_new(FALSE, FALSE, sizeof(phrase_token_t));
int num = reduce_tokens(tokens, tokenarray);
if (num)
token = g_array_index(tokenarray, phrase_token_t, 0);