projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa0b6e
)
add set options method to facade chewing table
author
Peng Wu
<alexepico@gmail.com>
Tue, 6 Dec 2011 03:42:33 +0000
(11:42 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Tue, 6 Dec 2011 03:42:33 +0000
(11:42 +0800)
src/storage/facade_chewing_table.h
patch
|
blob
|
history
diff --git
a/src/storage/facade_chewing_table.h
b/src/storage/facade_chewing_table.h
index
63b968a
..
e411589
100644
(file)
--- 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){