diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-06 11:42:33 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-06 11:42:33 +0800 |
commit | e662a0d2ecb5e1910b9aec295df0a5b1098f7a41 (patch) | |
tree | 81c9df92ec56bad55ece4ef0c94319783b422b84 | |
parent | 8fa0b6e444294ab86aa88a35ff3cd04d1f5f9906 (diff) | |
download | libpinyin-e662a0d2ecb5e1910b9aec295df0a5b1098f7a41.tar.gz libpinyin-e662a0d2ecb5e1910b9aec295df0a5b1098f7a41.tar.xz libpinyin-e662a0d2ecb5e1910b9aec295df0a5b1098f7a41.zip |
add set options method to facade chewing table
-rw-r--r-- | src/storage/facade_chewing_table.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/storage/facade_chewing_table.h b/src/storage/facade_chewing_table.h index 63b968a..e411589 100644 --- a/src/storage/facade_chewing_table.h +++ b/src/storage/facade_chewing_table.h @@ -39,6 +39,16 @@ public: m_user_chewing_table = NULL; } + /* set options method */ + bool set_options(pinyin_option_t options) { + bool result = false; + if (m_system_chewing_table) + result = m_system_chewing_table->set_options(options) || result; + if (m_user_chewing_table) + result = m_user_chewing_table->set_options(options) || result; + return result; + } + /* load/store method */ bool load(pinyin_option_t options, MemoryChunk * system, MemoryChunk * user){ |