diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/strspn.h | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/strspn.h')
-rw-r--r-- | util/string/strspn.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/strspn.h b/util/string/strspn.h index c5bce7be46..8229e74a9c 100644 --- a/util/string/strspn.h +++ b/util/string/strspn.h @@ -4,7 +4,7 @@ #include <util/generic/bitmap.h> -template <class TSetType> +template <class TSetType> class TStrSpnImpl { public: inline TStrSpnImpl(const char* b, const char* e) { @@ -17,33 +17,33 @@ public: //FirstOf template <class It> - inline It FindFirstOf(It b, const char* e) const noexcept { + inline It FindFirstOf(It b, const char* e) const noexcept { return FindFirst<false>(b, e); } template <class It> - inline It FindFirstOf(It s) const noexcept { + inline It FindFirstOf(It s) const noexcept { return FindFirst<false>(s, TCStringEndIterator()); } //FirstNotOf template <class It> - inline It FindFirstNotOf(It b, const char* e) const noexcept { + inline It FindFirstNotOf(It b, const char* e) const noexcept { return FindFirst<true>(b, e); } template <class It> - inline It FindFirstNotOf(It s) const noexcept { + inline It FindFirstNotOf(It s) const noexcept { return FindFirst<true>(s, TCStringEndIterator()); } - inline void Set(ui8 b) noexcept { + inline void Set(ui8 b) noexcept { S_.Set(b); } private: template <bool Result, class It1, class It2> - inline It1 FindFirst(It1 b, It2 e) const noexcept { + inline It1 FindFirst(It1 b, It2 e) const noexcept { while (b != e && (S_.Get((ui8)*b) == Result)) { ++b; } @@ -59,7 +59,7 @@ private: } private: - TSetType S_; + TSetType S_; }; using TCompactStrSpn = TStrSpnImpl<TBitMap<256>>; |