From 2b86d6b41b0219b4b645e51ca7f9520062999c91 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 25 Sep 2013 16:36:50 +0800 Subject: update test_parser2 --- src/storage/pinyin_parser2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/storage/pinyin_parser2.cpp') diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 4a20e1b..6884f8a 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -1154,13 +1154,13 @@ int ChewingDirectParser2::parse(pinyin_option_t options, } /* skip consecutive spaces */ - for (i = cur; i < len; ++i) { + for (i = next; i < len; ++i) { if (' ' != str[i] && '\'' != str[i]) break; } - next = cur; - parsed_len = next; + cur = i; + parsed_len = i; } return parsed_len; -- cgit