diff options
author | Peng Wu <alexepico@gmail.com> | 2012-08-21 11:29:06 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-08-25 13:28:21 +0800 |
commit | ad4e7289182d50ebd7fb040fa180a0c4b54473f6 (patch) | |
tree | 3ef22917de2894987ca621b4e78c6a4618d1a6cc /src/storage/phrase_large_table2.h | |
parent | de4af396b7c93fa5aaf386afe21e06d0ae053e75 (diff) | |
download | libpinyin-ad4e7289182d50ebd7fb040fa180a0c4b54473f6.tar.gz libpinyin-ad4e7289182d50ebd7fb040fa180a0c4b54473f6.tar.xz libpinyin-ad4e7289182d50ebd7fb040fa180a0c4b54473f6.zip |
add phrase_large_table2.cpp
Diffstat (limited to 'src/storage/phrase_large_table2.h')
-rw-r--r-- | src/storage/phrase_large_table2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h index 314962c..32f4934 100644 --- a/src/storage/phrase_large_table2.h +++ b/src/storage/phrase_large_table2.h @@ -45,7 +45,7 @@ public: /* load/store method */ bool load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end); - bool store(MemoryChunk * newchunk, table_offset_t offset, table_offset_t & end); + bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end); /* search method */ int search(int phrase_length, /* in */ ucs4_t phrase[], @@ -85,9 +85,9 @@ public: return m_bitmap_table.load(chunk, 0, chunk->size()); } - bool store(MemoryChunk * newchunk){ + bool store(MemoryChunk * new_chunk){ table_offset_t end; - return m_bitmap_table.store(newchunk, 0, end); + return m_bitmap_table.store(new_chunk, 0, end); } bool load_text(FILE * file); @@ -103,7 +103,7 @@ public: return m_bitmap_table.add_index(phrase_length, phrase, token); } - int remove_index(int phrase_length, /* in */ ucs4_t phrase[], /* out */ phrase_token_t token) { + int remove_index(int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token) { return m_bitmap_table.remove_index(phrase_length, phrase, token); } }; |