diff options
author | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:16:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:16:18 +0800 |
commit | dec9d3f7f0aba34dccd8dbecb8a5277bdfa10196 (patch) | |
tree | cc81dbc25c69c24a19d147b48cfd11be0ee501e8 /src/storage/table_info.h | |
parent | 927c7ea42bd759b05518dbbf2a0f89d263cfe437 (diff) | |
download | libpinyin-dec9d3f7f0aba34dccd8dbecb8a5277bdfa10196.tar.gz libpinyin-dec9d3f7f0aba34dccd8dbecb8a5277bdfa10196.tar.xz libpinyin-dec9d3f7f0aba34dccd8dbecb8a5277bdfa10196.zip |
support default and addon table info
Diffstat (limited to 'src/storage/table_info.h')
-rw-r--r-- | src/storage/table_info.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/storage/table_info.h b/src/storage/table_info.h index 2f45a50..0db4555 100644 --- a/src/storage/table_info.h +++ b/src/storage/table_info.h @@ -59,7 +59,9 @@ private: TABLE_PHONETIC_TYPE m_table_phonetic_type; - pinyin_table_info_t m_table_info[PHRASE_INDEX_LIBRARY_COUNT]; + pinyin_table_info_t m_default_tables[PHRASE_INDEX_LIBRARY_COUNT]; + + pinyin_table_info_t m_addon_tables[PHRASE_INDEX_LIBRARY_COUNT]; private: void reset(); @@ -73,7 +75,9 @@ public: bool load(const char * filename); - const pinyin_table_info_t * get_table_info(); + const pinyin_table_info_t * get_default_tables(); + + const pinyin_table_info_t * get_addon_tables(); gfloat get_lambda(); |