diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:14 +0300 |
commit | 60040c91ffe701a84689b2c6310ff845e65cff42 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/strbase.h | |
parent | 736dcd8ca259457a136f2f9f9168c44643914323 (diff) | |
download | ydb-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.h | 14 |
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); } |