add get_shengmu/yunmu_string
[platform/upstream/libpinyin.git] / src / storage / phrase_index.cpp
index 32b59a2..67afb97 100644 (file)
@@ -659,27 +659,27 @@ bool FacadePhraseIndex::mask_out(guint8 phrase_index,
 namespace pinyin{
 const pinyin_table_info_t pinyin_phrase_files[PHRASE_INDEX_LIBRARY_COUNT] =
     {
-        {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},
+        {RESERVED, NULL, NULL, NULL, NOT_USED},
+        {GB_DICTIONARY, "gb_char.table", "gb_char.bin", "gb_char.dbin", SYSTEM_FILE},
+        {GBK_DICTIONARY, "gbk_char.table", "gbk_char.bin", "gbk_char.dbin", SYSTEM_FILE},
 
-        {"merged.table", "merged.bin", "merged.dbin", SYSTEM_FILE},
+        {MERGED_DICTIONARY, "merged.table", "merged.bin", "merged.dbin", SYSTEM_FILE},
 
-        {"art.table", "art.bin", "art.dbin", DICTIONARY},
-        {"culture.table", "culture.bin", "culture.dbin", DICTIONARY},
-        {"economy.table", "economy.bin", "economy.dbin", DICTIONARY},
-        {"geology.table", "geology.bin", "geology.dbin", DICTIONARY},
-        {"history.table", "history.bin", "history.dbin", DICTIONARY},
+        {ART_DICTIONARY, "art.table", "art.bin", "art.dbin", DICTIONARY},
+        {CULTURE_DICTIONARY, "culture.table", "culture.bin", "culture.dbin", DICTIONARY},
+        {ECONOMY_DICTIONARY, "economy.table", "economy.bin", "economy.dbin", DICTIONARY},
+        {GEOLOGY_DICTIONARY, "geology.table", "geology.bin", "geology.dbin", DICTIONARY},
+        {HISTORY_DICTIONARY, "history.table", "history.bin", "history.dbin", DICTIONARY},
 
-        {"life.table", "life.bin", "life.dbin", DICTIONARY},
-        {"nature.table", "nature.bin", "nature.dbin", DICTIONARY},
-        {"scitech.table", "scitech.bin", "scitech.dbin", DICTIONARY},
-        {"society.table", "society.bin", "society.dbin", DICTIONARY},
-        {"sport.table", "sport.bin", "sport.dbin", DICTIONARY},
+        {LIFE_DICTIONARY, "life.table", "life.bin", "life.dbin", DICTIONARY},
+        {NATURE_DICTIONARY, "nature.table", "nature.bin", "nature.dbin", DICTIONARY},
+        {SCITECH_DICTIONARY, "scitech.table", "scitech.bin", "scitech.dbin", DICTIONARY},
+        {SOCIETY_DICTIONARY, "society.table", "society.bin", "society.dbin", DICTIONARY},
+        {SPORT_DICTIONARY, "sport.table", "sport.bin", "sport.dbin", DICTIONARY},
 
-        {NULL, NULL, NULL, NOT_USED},
+        {RESERVED1, NULL, NULL, NULL, NOT_USED},
 
-        {NULL, NULL, "user.bin", USER_FILE}
+        {USER_DICTIONARY, NULL, NULL, "user.bin", USER_FILE}
     };