Upgrade limonp to v0.6.0

This commit is contained in:
yanyiwu 2016-03-18 16:14:48 +08:00
parent 81c35dde01
commit 3ef005275a
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# CppJieba ChangeLog
## next version
+ Upgrade limonp to v0.6.0
## v4.5.2
+ Upgrade limonp to v0.5.6 to fix hidden trouble.

View File

@ -120,12 +120,10 @@ inline void Split(const string& src, vector<string>& res, const string& pattern,
end = src.find_first_of(pattern, Start);
if(string::npos == end || res.size() >= maxsplit) {
sub = src.substr(Start);
Trim(sub);
res.push_back(sub);
return;
}
sub = src.substr(Start, end - Start);
Trim(sub);
res.push_back(sub);
Start = end + 1;
}