diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-18 14:25:25 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-18 14:25:25 +0100 |
commit | 87873d0d656890f693aa29f062dd8fc496a9d6ae (patch) | |
tree | 16e332e447e01114cd296dc94d9aa9937c9d7602 /src/libutil/util.cc | |
parent | 31c240ee8b5f7949439eede0d7953d04261147fe (diff) | |
parent | f8abbdd4565542464f31f4dc203a9c3e091b3536 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 085c1e695..dda0950a1 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1213,7 +1213,7 @@ void _interrupted() ////////////////////////////////////////////////////////////////////// -template<class C> C tokenizeString(const string & s, const string & separators) +template<class C> C tokenizeString(std::string_view s, const string & separators) { C result; string::size_type pos = s.find_first_not_of(separators, 0); @@ -1227,9 +1227,9 @@ template<class C> C tokenizeString(const string & s, const string & separators) return result; } -template Strings tokenizeString(const string & s, const string & separators); -template StringSet tokenizeString(const string & s, const string & separators); -template vector<string> tokenizeString(const string & s, const string & separators); +template Strings tokenizeString(std::string_view s, const string & separators); +template StringSet tokenizeString(std::string_view s, const string & separators); +template vector<string> tokenizeString(std::string_view s, const string & separators); string chomp(const string & s) |