diff options
| author | melkov <[email protected]> | 2022-02-10 16:48:13 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:13 +0300 |
| commit | 438546c8737d5c1fdeb31157dcf999717d930eec (patch) | |
| tree | d29d229abd2f9f889b9b7eb148d635059dc26acf /util/string/split.cpp | |
| parent | 96647fad5355ff5ef45a00a6d85c097028584ab0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 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 7d26857cc7a..e3fc1444f50 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); } |
