summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_parser2.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-16 15:11:41 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-16 15:11:41 +0800
commita5ea7448d20d6d3b5cae73bfe5dfda81e4e2cdf7 (patch)
tree7854f7967c86b17e0b06b88f7e483a6ce2fea054 /src/storage/pinyin_parser2.cpp
parent7bd74b74a471de458ad5563f5f24d59fc28066a4 (diff)
downloadlibpinyin-a5ea7448d20d6d3b5cae73bfe5dfda81e4e2cdf7.tar.gz
libpinyin-a5ea7448d20d6d3b5cae73bfe5dfda81e4e2cdf7.tar.xz
libpinyin-a5ea7448d20d6d3b5cae73bfe5dfda81e4e2cdf7.zip
update code
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r--src/storage/pinyin_parser2.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
index 9425b6f..f22f4ba 100644
--- a/src/storage/pinyin_parser2.cpp
+++ b/src/storage/pinyin_parser2.cpp
@@ -457,17 +457,15 @@ bool FullPinyinParser2::post_process2(pinyin_option_t options,
continue;
/* do re-split */
- const char * onepinyin = str + cur_rest->m_raw_begin;
size_t len = strlen(item->m_new_keys[0]);
- assert(parse_one_key(options, *cur_key, onepinyin, len));
+ *cur_key = item->m_new_structs[0];
cur_rest->m_raw_end = cur_rest->m_raw_begin + len;
next_rest->m_raw_begin = cur_rest->m_raw_end;
- onepinyin = str + next_rest->m_raw_begin;
len = strlen(item->m_new_keys[1]);
- assert(parse_one_key(options, *next_key, onepinyin, len));
+ *next_key = item->m_new_structs[1];
}
/* restore tones */