aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/strbase.h
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:14 +0300
commit60040c91ffe701a84689b2c6310ff845e65cff42 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/strbase.h
parent736dcd8ca259457a136f2f9f9168c44643914323 (diff)
downloadydb-60040c91ffe701a84689b2c6310ff845e65cff42.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/strbase.h')
-rw-r--r--util/generic/strbase.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/strbase.h b/util/generic/strbase.h
index e8bc89569a..ab39fc7537 100644
--- a/util/generic/strbase.h
+++ b/util/generic/strbase.h
@@ -483,14 +483,14 @@ public:
return !s.length() || find(s, pos) != npos;
}
- inline bool Contains(TChar c, size_t pos = 0) const noexcept {
+ inline bool Contains(TChar c, size_t pos = 0) const noexcept {
return find(c, pos) != npos;
}
- inline void Contains(std::enable_if<std::is_unsigned<TCharType>::value, char> c, size_t pos = 0) const noexcept {
- return find(ui8(c), pos) != npos;
- }
-
+ inline void Contains(std::enable_if<std::is_unsigned<TCharType>::value, char> c, size_t pos = 0) const noexcept {
+ return find(ui8(c), pos) != npos;
+ }
+
//~~~~Character Set Search~~~
inline size_t find_first_of(TCharType c) const noexcept {
return find_first_of(c, 0);
@@ -569,12 +569,12 @@ public:
return n;
}
- inline TDerived copy() const Y_WARN_UNUSED_RESULT {
+ inline TDerived copy() const Y_WARN_UNUSED_RESULT {
return TDerived(Ptr(), Len());
}
// ~~~ Partial copy ~~~~
- TDerived substr(size_t pos, size_t n = npos) const Y_WARN_UNUSED_RESULT {
+ TDerived substr(size_t pos, size_t n = npos) const Y_WARN_UNUSED_RESULT {
return TDerived(*This(), pos, n);
}