aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/strspn.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/string/strspn.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/string/strspn.h')
-rw-r--r--util/string/strspn.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/strspn.h b/util/string/strspn.h
index 8229e74a9c..c5bce7be46 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>>;