diff options
author | pozhilov <[email protected]> | 2022-02-10 16:49:27 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:27 +0300 |
commit | 23bf1d16dddf213a6aa8e8d5c8621e1242a1f118 (patch) | |
tree | ed030ff443eb83431f11e53b6460b1b73d035412 /util/string/split.h | |
parent | 7156b3713e77ce36387436e5558320917698b7a2 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/string/split.h')
-rw-r--r-- | util/string/split.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/string/split.h b/util/string/split.h index bc46d9e64c6..81607e09612 100644 --- a/util/string/split.h +++ b/util/string/split.h @@ -1,10 +1,10 @@ #pragma once #include "strspn.h" -#include "cast.h" +#include "cast.h" #include <util/generic/algorithm.h> -#include <util/generic/fwd.h> +#include <util/generic/fwd.h> #include <util/generic/iterator.h> #include <util/generic/iterator_range.h> #include <util/generic/store_policy.h> @@ -431,16 +431,16 @@ void GetNext(TStringBuf& s, D delim, P& param) { param = FromString<P>(next); } -template <class P, class D> -void GetNext(TStringBuf& s, D delim, TMaybe<P>& param) { - TStringBuf next = s.NextTok(delim); - if (next.IsInited()) { - param = FromString<P>(next); - } else { - param.Clear(); - } -} - +template <class P, class D> +void GetNext(TStringBuf& s, D delim, TMaybe<P>& param) { + TStringBuf next = s.NextTok(delim); + if (next.IsInited()) { + param = FromString<P>(next); + } else { + param.Clear(); + } +} + // example: // Split(TStringBuf("Sherlock,2014,36.6"), ',', name, year, temperature); template <class D, class P1, class P2> |