summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-09-06 14:09:17 +0800
committerPeng Wu <alexepico@gmail.com>2011-09-06 14:09:17 +0800
commitcd0ab1bf9664acee7b014c1b71c05270dee9f080 (patch)
tree79febf611daa4000fe3f25432df04fd036bed1db /src/pinyin.cpp
parentf31c2e6b65d7bfa50af449dd26206b0805968d81 (diff)
downloadlibpinyin-cd0ab1bf9664acee7b014c1b71c05270dee9f080.tar.gz
libpinyin-cd0ab1bf9664acee7b014c1b71c05270dee9f080.tar.xz
libpinyin-cd0ab1bf9664acee7b014c1b71c05270dee9f080.zip
write test chewing
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 8e5773d..45da2fa 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -235,9 +235,9 @@ bool pinyin_parse_chewing(pinyin_context_t * context,
return chewing_len == parse_len;
}
-bool pinyin_parse_more_chewing(pinyin_context_t * context,
- const char * chewings,
- PinyinKeyVector * pinyin_keys){
+bool pinyin_parse_more_chewings(pinyin_context_t * context,
+ const char * chewings,
+ PinyinKeyVector pinyin_keys){
int chewing_len = strlen(chewings);
PinyinKeyPosVector poses;
poses = g_array_new(FALSE, FALSE, sizeof(PinyinKeyPos));
@@ -247,7 +247,7 @@ bool pinyin_parse_more_chewing(pinyin_context_t * context,
poses, chewings, chewing_len);
g_array_free(poses, TRUE);
- return pinyin_len == parse_len;
+ return chewing_len == parse_len;
}