summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-27 09:41:03 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-27 09:41:03 +0800
commit646d55409b13fec993b9cf64894c11ca6cc4f525 (patch)
tree594201ae3190de30bb54f6cc04c82b65583e11cc
parent745e87ade00dd7133613a923d7f14f3f8eb5ef97 (diff)
downloadlibpinyin-646d55409b13fec993b9cf64894c11ca6cc4f525.tar.gz
libpinyin-646d55409b13fec993b9cf64894c11ca6cc4f525.tar.xz
libpinyin-646d55409b13fec993b9cf64894c11ca6cc4f525.zip
refine parse one key
-rw-r--r--src/storage/pinyin_parser2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
index c91be99..6b9279b 100644
--- a/src/storage/pinyin_parser2.cpp
+++ b/src/storage/pinyin_parser2.cpp
@@ -623,7 +623,6 @@ bool DoublePinyinParser2::parse_one_key(pinyin_option_t options,
ChewingKey & key,
const char *str, int len) const {
options &= ~(PINYIN_CORRECT_ALL|PINYIN_AMB_ALL);
- options |= PINYIN_CORRECT_UE_VE;
if (1 == len) {
if (!(options & PINYIN_INCOMPLETE))
@@ -647,6 +646,7 @@ bool DoublePinyinParser2::parse_one_key(pinyin_option_t options,
ChewingTone tone = CHEWING_ZERO_TONE;
options &= ~(PINYIN_INCOMPLETE|CHEWING_INCOMPLETE);
+ options |= PINYIN_CORRECT_UE_VE;
/* parse tone */
if (3 == len) {