summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_large_table.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-19 14:17:41 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-19 14:17:41 +0800
commit9822563242af16a1e8de2aa83bcd3c65dad1ed97 (patch)
tree120c43d36f4ba7233caff45540e339dd89b5f778 /src/storage/pinyin_large_table.h
parent6f3ee371d7118ac04327a7654a519657e8981edd (diff)
downloadlibpinyin-9822563242af16a1e8de2aa83bcd3c65dad1ed97.tar.gz
libpinyin-9822563242af16a1e8de2aa83bcd3c65dad1ed97.tar.xz
libpinyin-9822563242af16a1e8de2aa83bcd3c65dad1ed97.zip
add phrase index table interface
Diffstat (limited to 'src/storage/pinyin_large_table.h')
-rwxr-xr-xsrc/storage/pinyin_large_table.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/storage/pinyin_large_table.h b/src/storage/pinyin_large_table.h
index fd11aef..c1e6247 100755
--- a/src/storage/pinyin_large_table.h
+++ b/src/storage/pinyin_large_table.h
@@ -128,7 +128,7 @@ public:
reset();
}
- /*load/save method*/
+ /* load/store method */
bool load(MemoryChunk * chunk){
reset();
m_chunk = chunk;
@@ -147,16 +147,17 @@ public:
}
*/
- /*search/add_index method */
+ /* search/add_index/remove_index method */
int search( int phrase_length, /* in */ PinyinKey keys[],
/* out */ PhraseIndexRanges ranges){
return m_bitmap_table.search(phrase_length, keys, ranges);
}
- int add_index( int phrase_length, /* in */ PinyinKey keys[] ,/* in */ phrase_token_t token){
+ int add_index( int phrase_length, /* in */ PinyinKey keys[], /* in */ phrase_token_t token){
return m_bitmap_table.add_index(phrase_length, keys, token);
}
- int remove_index( int phrase_length, /* in */ PinyinKey keys[] ,/* in */ phrase_token_t token){
+
+ int remove_index( int phrase_length, /* in */ PinyinKey keys[], /* in */ phrase_token_t token){
return m_bitmap_table.remove_index(phrase_length, keys, token);
}