diff options
author | Peng Wu <alexepico@gmail.com> | 2012-02-21 14:09:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-02-21 14:09:32 +0800 |
commit | 62dffb4c3615c275d514ee9428d1688770c6173b (patch) | |
tree | 13bc21f7052d15c1fefae58f7d9cc62f6a3d810f /tests/storage/test_chewing_table.cpp | |
parent | 5deda46d8f6c8e922cc31e7958d3558589bb7260 (diff) | |
download | libpinyin-62dffb4c3615c275d514ee9428d1688770c6173b.tar.gz libpinyin-62dffb4c3615c275d514ee9428d1688770c6173b.tar.xz libpinyin-62dffb4c3615c275d514ee9428d1688770c6173b.zip |
update tests directory
Diffstat (limited to 'tests/storage/test_chewing_table.cpp')
-rw-r--r-- | tests/storage/test_chewing_table.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp index 02e855e..ac09a10 100644 --- a/tests/storage/test_chewing_table.cpp +++ b/tests/storage/test_chewing_table.cpp @@ -115,9 +115,9 @@ int main(int argc, char * argv[]) { phrase_index.get_phrase_item( token, item); /* get phrase string */ - gunichar2 buffer[MAX_PHRASE_LENGTH + 1]; + ucs4_t buffer[MAX_PHRASE_LENGTH + 1]; item.get_phrase_string(buffer); - char * string = g_utf16_to_utf8 + char * string = g_ucs4_to_utf8 ( buffer, item.get_phrase_length(), NULL, NULL, NULL); printf("%s\t", string); |