summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-15 11:07:08 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-15 11:07:08 +0800
commit51e7af528a4fe1c5da660eba48268369225c064c (patch)
tree9e45af142b43fd5d8927b5cee6914a3ecc207de1
parentdcc594e5c54f5d3bbae442434e080bab52f9b9cf (diff)
downloadlibpinyin-51e7af528a4fe1c5da660eba48268369225c064c.tar.gz
libpinyin-51e7af528a4fe1c5da660eba48268369225c064c.tar.xz
libpinyin-51e7af528a4fe1c5da660eba48268369225c064c.zip
use PinyinDirectParser2
-rw-r--r--src/storage/chewing_large_table.cpp2
-rw-r--r--src/storage/phrase_index.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp
index 5e5bdd8..a51592a 100644
--- a/src/storage/chewing_large_table.cpp
+++ b/src/storage/chewing_large_table.cpp
@@ -679,7 +679,7 @@ bool ChewingLargeTable::load_text(FILE * infile) {
glong len = g_utf8_strlen(phrase, -1);
- FullPinyinParser2 parser;
+ PinyinDirectParser2 parser;
ChewingKeyVector keys;
ChewingKeyRestVector key_rests;
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp
index 3f13042..a18ff9d 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -557,7 +557,7 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){
}
pinyin_option_t options = USE_TONE;
- FullPinyinParser2 parser;
+ PinyinDirectParser2 parser;
ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey));
ChewingKeyRestVector key_rests =
g_array_new(FALSE, FALSE, sizeof(ChewingKeyRest));