From e662a0d2ecb5e1910b9aec295df0a5b1098f7a41 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 6 Dec 2011 11:42:33 +0800 Subject: add set options method to facade chewing table --- src/storage/facade_chewing_table.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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){ -- cgit