pinyin_phrase.h \
phrase_index.h \
pinyin_zhuyin_map_data.h \
+ phrase_large_table.h \
ngram.h
noinst_LTLIBRARIES = libstorage.la
libstorage_la_SOURCES = pinyin_base.cpp \
pinyin_large_table.cpp \
phrase_index.cpp \
+ phrase_large_table.cpp \
ngram.cpp
}
void PhraseBitmapIndexLevel::reset(){
- for ( int i = 0; i < PHRASE_Number_Of_Bitmap_Index; i++){
+ for ( size_t i = 0; i < PHRASE_Number_Of_Bitmap_Index; i++){
PhraseLengthIndexLevel * length_array =
m_phrase_length_indexes[i];
if ( length_array )
break; \
}
- for ( int i = 0 ; i < m_phrase_array_indexes->len; ++i){
+ for ( size_t i = 0 ; i < m_phrase_array_indexes->len; ++i){
switch (i){
CASE(0);
CASE(1);
}
template<size_t phrase_length>
-int PinyinArrayIndexLevel<phrase_length>::search(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token){
+int PhraseArrayIndexLevel<phrase_length>::search(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token){
}
namespace novel{
-const size_t PHRASE_Number_Of_Bitmap_Index = 1<< (sizeof(utf16_t) * 8);
+const size_t PHRASE_Number_Of_Bitmap_Index = 1<<(sizeof(utf16_t) * 8);
class PhraseLengthIndexLevel;
void reset();
public:
PhraseBitmapIndexLevel();
- ~PhraseBitmapIndex(){
+ ~PhraseBitmapIndexLevel(){
reset();
}
protected:
GArray* m_phrase_array_indexes;
public:
+ PhraseLengthIndexLevel();
+ ~PhraseLengthIndexLevel();
+
+ /* load/store method */
bool load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end);
bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end);