diff options
author | Peng Wu <alexepico@gmail.com> | 2013-09-25 16:36:50 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-09-25 16:36:50 +0800 |
commit | 2b86d6b41b0219b4b645e51ca7f9520062999c91 (patch) | |
tree | aaeed472e44d63a975520808cfff7fb0ee3b05b7 /src | |
parent | 270a44a900c2418255c7dbe7e7e26578545df885 (diff) | |
download | libzhuyin-2b86d6b41b0219b4b645e51ca7f9520062999c91.tar.gz libzhuyin-2b86d6b41b0219b4b645e51ca7f9520062999c91.tar.xz libzhuyin-2b86d6b41b0219b4b645e51ca7f9520062999c91.zip |
update test_parser2
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |