mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
Upgrade limonp to v0.6.0
This commit is contained in:
parent
81c35dde01
commit
3ef005275a
@ -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.
|
||||
|
2
deps/limonp/StringUtil.hpp
vendored
2
deps/limonp/StringUtil.hpp
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user