diff options
author | Peng Wu <alexepico@gmail.com> | 2016-01-26 14:20:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-01-26 14:20:32 +0800 |
commit | b88fe953c5fabf900e58aa5be590d382d9bb0539 (patch) | |
tree | 25bf5843642cf0054e815952d526858a6d53fdac /src/storage/facade_phrase_table3.h | |
parent | a1d8b3aff09476f0a4e2f9d39a91252a188e4af9 (diff) | |
download | libpinyin-b88fe953c5fabf900e58aa5be590d382d9bb0539.tar.gz libpinyin-b88fe953c5fabf900e58aa5be590d382d9bb0539.tar.xz libpinyin-b88fe953c5fabf900e58aa5be590d382d9bb0539.zip |
update FacadePhraseTable3
Diffstat (limited to 'src/storage/facade_phrase_table3.h')
-rw-r--r-- | src/storage/facade_phrase_table3.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/storage/facade_phrase_table3.h b/src/storage/facade_phrase_table3.h index c1b8914..c9f597c 100644 --- a/src/storage/facade_phrase_table3.h +++ b/src/storage/facade_phrase_table3.h @@ -72,28 +72,28 @@ public: reset(); } - bool load(FILE * system_index, MemoryChunk * system_content, - FILE * user_index, MemoryChunk * user_content) { + bool load(const char * system_filename, + const char * user_filename) { reset(); bool result = false; - if (system_index && system_content) { + if (system_filename) { m_system_phrase_table = new PhraseLargeTable3; result = m_system_phrase_table->load - (system_index, system_content) || result; + (system_filename) || result; } - if (user_index && user_content) { + if (user_filename) { m_user_phrase_table = new PhraseLargeTable3; result = m_user_phrase_table->load - (user_index, user_content) || result; + (user_filename) || result; } return result; } - bool store(FILE * new_user_index, MemoryChunk * new_user_content) { + bool store(const char * new_user_filename) { if (NULL == m_user_phrase_table) return false; - return m_user_phrase_table->store(new_user_index, new_user_content); + return m_user_phrase_table->store(new_user_filename); } /** |