diff options
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index ad7c60c..8e73517 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -560,17 +560,27 @@ bool FacadePhraseIndex::compact(){ return true; } - -const char * pinyin_phrase_files[PHRASE_INDEX_LIBRARY_COUNT] = - { - NULL, - "gb_char.bin", - "gbk_char.bin" - }; - -const char * pinyin_table_files[PHRASE_INDEX_LIBRARY_COUNT] = +namespace pinyin{ +const pinyin_table_info_t pinyin_phrase_files[PHRASE_INDEX_LIBRARY_COUNT] = { - NULL, - "gb_char.table", - "gbk_char.table" + {NULL, NULL, NULL, NOT_USED}, + {"gb_char.table", "gb_char.bin", "gb_char.dbin", SYSTEM_FILE}, + {"gbk_char.table", "gbk_char.bin", "gbk_char.dbin", SYSTEM_FILE}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + {NULL, NULL, NULL, NOT_USED}, + + {NULL, NULL, "user.bin", USER_FILE} }; +}; |