diff options
author | Peng Wu <alexepico@gmail.com> | 2010-09-01 14:46:03 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-09-01 14:46:03 +0800 |
commit | adb921802288a80b216683aab0e454abfdd6fa00 (patch) | |
tree | d0bf1e7e9ca26150759d78c3a26c0a3f995aed3c /src/storage/pinyin_large_table.cpp | |
parent | 846e8ee8f62be6018a1d10d4d303f41d89e8787e (diff) | |
download | libpinyin-adb921802288a80b216683aab0e454abfdd6fa00.tar.gz libpinyin-adb921802288a80b216683aab0e454abfdd6fa00.tar.xz libpinyin-adb921802288a80b216683aab0e454abfdd6fa00.zip |
add load_text to phrase large table
Diffstat (limited to 'src/storage/pinyin_large_table.cpp')
-rw-r--r-- | src/storage/pinyin_large_table.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/pinyin_large_table.cpp b/src/storage/pinyin_large_table.cpp index f05317c..07f643e 100644 --- a/src/storage/pinyin_large_table.cpp +++ b/src/storage/pinyin_large_table.cpp @@ -482,6 +482,7 @@ bool PinyinLargeTable::load_text(FILE * infile){ char phrase[256]; phrase_token_t token; size_t freq; + while ( !feof(infile)){ fscanf(infile, "%s", pinyin); fscanf(infile, "%s", phrase); @@ -502,7 +503,7 @@ bool PinyinLargeTable::load_text(FILE * infile){ g_array_free(keys, true); g_array_free(poses, true); } - return true; + return true; } bool PinyinBitmapIndexLevel::load(MemoryChunk * chunk, table_offset_t offset, |