aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/strbase.h
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:13 +0300
commit736dcd8ca259457a136f2f9f9168c44643914323 (patch)
treeddd46a036d68bfa83aa11b892f31243ea6b068a1 /util/generic/strbase.h
parent9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff)
downloadydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 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 ab39fc7537..e8bc89569a 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);
}