diff options
| author | melkov <[email protected]> | 2022-02-10 16:48:14 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:14 +0300 |
| commit | 2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch) | |
| tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/string/split.cpp | |
| parent | 438546c8737d5c1fdeb31157dcf999717d930eec (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/split.cpp')
| -rw-r--r-- | util/string/split.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/string/split.cpp b/util/string/split.cpp index e3fc1444f50..7d26857cc7a 100644 --- a/util/string/split.cpp +++ b/util/string/split.cpp @@ -8,7 +8,7 @@ inline size_t Split(const char* ptr, const char* delim, TVector<TValue>& values) if (ptr && *ptr) { size_t epos = strcspn(ptr, delim); assert(epos); - values.push_back(TValue(ptr, epos)); + values.push_back(TValue(ptr, epos)); ptr += epos; } } @@ -17,8 +17,8 @@ inline size_t Split(const char* ptr, const char* delim, TVector<TValue>& values) size_t Split(const char* ptr, const char* delim, TVector<TString>& values) { return Split<TString>(ptr, delim, values); -} - +} + size_t Split(const TString& in, const TString& delim, TVector<TString>& res) { return Split(in.data(), delim.data(), res); } |
