aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/strbuf.h
diff options
context:
space:
mode:
authorkrock21 <krock21@yandex-team.ru>2022-02-10 16:46:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:02 +0300
commit937a6bb8d7c82d8d9d717f2bf6ce6c592a443641 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/strbuf.h
parent4aae166b5d23fd02653919f43e2015cd636fa6fd (diff)
downloadydb-937a6bb8d7c82d8d9d717f2bf6ce6c592a443641.tar.gz
Restoring authorship annotation for <krock21@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/strbuf.h')
-rw-r--r--util/generic/strbuf.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h
index e7fb3ece479..70b9360d580 100644
--- a/util/generic/strbuf.h
+++ b/util/generic/strbuf.h
@@ -1,7 +1,7 @@
#pragma once
#include "fwd.h"
-#include "strbase.h"
+#include "strbase.h"
#include "utility.h"
#include "typetraits.h"
@@ -111,7 +111,7 @@ public:
{
}
- constexpr inline TBasicStringBuf(const TCharType* beg, const TCharType* end) noexcept
+ constexpr inline TBasicStringBuf(const TCharType* beg, const TCharType* end) noexcept
: TStringView(beg, end - beg)
{
}
@@ -145,13 +145,13 @@ public:
*/
}
- inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos, size_t n) noexcept
- : TBasicStringBuf(src)
+ inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos, size_t n) noexcept
+ : TBasicStringBuf(src)
{
Skip(pos).Trunc(n);
}
- inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos) noexcept
+ inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos) noexcept
: TBasicStringBuf(src, pos, TBase::npos)
{
}
@@ -160,8 +160,8 @@ public:
pos = Min(pos, size());
n = Min(n, size() - pos);
return TBasicStringBuf(data() + pos, n);
- }
-
+ }
+
public:
void Clear() {
*this = TdSelf();
@@ -320,7 +320,7 @@ public:
public:
inline bool AfterPrefix(const TdSelf& prefix, TdSelf& result) const noexcept {
if (this->StartsWith(prefix)) {
- result = Tail(prefix.size());
+ result = Tail(prefix.size());
return true;
}
return false;