mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
update limonp
This commit is contained in:
parent
5bf7454ad2
commit
e55d0bf95c
@ -127,6 +127,11 @@ inline void split(const string& src, vector<string>& res, const string& pattern,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline vector<string> split(const string& src, const string& pattern, size_t maxsplit = string::npos) {
|
||||||
|
vector<string> res;
|
||||||
|
split(src, res, pattern, maxsplit);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool startsWith(const string& str, const string& prefix) {
|
inline bool startsWith(const string& str, const string& prefix) {
|
||||||
if(prefix.length() > str.length()) {
|
if(prefix.length() > str.length()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user