summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-08 17:23:39 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-09 13:34:47 +0800
commit7686fc7ad3b71877fe86ca84a6c38360df67ca3e (patch)
tree80c536e9196b2b0a7060e844f62db13864347e77
parentc98f91e572ddcb4caf953e1d5032ac8442d7d2f4 (diff)
downloadlibpinyin-7686fc7ad3b71877fe86ca84a6c38360df67ca3e.zip
libpinyin-7686fc7ad3b71877fe86ca84a6c38360df67ca3e.tar.gz
libpinyin-7686fc7ad3b71877fe86ca84a6c38360df67ca3e.tar.xz
port pinyin_internal.h
-rw-r--r--src/pinyin.cpp1
-rw-r--r--src/pinyin_internal.h16
2 files changed, 7 insertions, 10 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index a5ada67..604766d 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -206,6 +206,7 @@ void pinyin_fini(pinyin_context_t * context){
bool pinyin_set_options(pinyin_context_t * context,
pinyin_option_t options){
context->m_options = options;
+ context->m_pinyin_table->set_options(context->m_options);
return true;
}
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index d4ef233..ce5c887 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -25,11 +25,13 @@
#include "pinyin.h"
#include "memory_chunk.h"
-
-#include "pinyin_base.h"
-#include "pinyin_phrase.h"
-#include "pinyin_large_table.h"
+#include "pinyin_custom2.h"
+#include "pinyin_parser2.h"
+#include "pinyin_phrase2.h"
+#include "chewing_large_table.h"
#include "phrase_large_table.h"
+#include "facade_chewing_table.h"
+#include "facade_phrase_table.h"
#include "phrase_index.h"
#include "phrase_index_logger.h"
#include "ngram.h"
@@ -37,12 +39,6 @@
#include "pinyin_lookup.h"
#include "phrase_lookup.h"
#include "tag_utility.h"
-#include "pinyin_custom2.h"
-#include "pinyin_parser2.h"
-#include "pinyin_phrase2.h"
-#include "chewing_large_table.h"
-#include "facade_chewing_table.h"
-#include "facade_phrase_table.h"
/* training module */