aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authoraavdonkin <aavdonkin@yandex-team.ru>2022-02-10 16:49:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:57 +0300
commitefc32853c4263131bc59412eaf1a9e4aaae2a1f9 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library
parentfc8d3fe40009fab7705035e6ffdc3eb334307c80 (diff)
downloadydb-efc32853c4263131bc59412eaf1a9e4aaae2a1f9.tar.gz
Restoring authorship annotation for <aavdonkin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library')
-rw-r--r--library/cpp/cgiparam/cgiparam.cpp8
-rw-r--r--library/cpp/containers/comptrie/protopacker.h36
-rw-r--r--library/cpp/string_utils/quote/quote.cpp2
3 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp
index a8275b6882..f3277b8e4b 100644
--- a/library/cpp/cgiparam/cgiparam.cpp
+++ b/library/cpp/cgiparam/cgiparam.cpp
@@ -167,8 +167,8 @@ char* TCgiParameters::Print(char* res) const {
}
return res;
-}
-
+}
+
size_t TCgiParameters::PrintSize() const noexcept {
size_t res = size(); // for '&'
@@ -177,8 +177,8 @@ size_t TCgiParameters::PrintSize() const noexcept {
}
return res;
-}
-
+}
+
TString TCgiParameters::QuotedPrint(const char* safe) const {
if (empty()) {
return TString();
diff --git a/library/cpp/containers/comptrie/protopacker.h b/library/cpp/containers/comptrie/protopacker.h
index 8f1c389288..3e15866dc5 100644
--- a/library/cpp/containers/comptrie/protopacker.h
+++ b/library/cpp/containers/comptrie/protopacker.h
@@ -1,29 +1,29 @@
-#pragma once
-
+#pragma once
+
#include <util/stream/mem.h>
-#include <util/ysaveload.h>
-
+#include <util/ysaveload.h>
+
template <class Proto>
class TProtoPacker {
-public:
+public:
TProtoPacker() = default;
-
+
void UnpackLeaf(const char* p, Proto& entry) const {
- TMemoryInput in(p + sizeof(ui32), SkipLeaf(p) - sizeof(ui32));
+ TMemoryInput in(p + sizeof(ui32), SkipLeaf(p) - sizeof(ui32));
entry.ParseFromArcadiaStream(&in);
- }
+ }
void PackLeaf(char* p, const Proto& entry, size_t size) const {
- TMemoryOutput out(p, size + sizeof(ui32));
- Save<ui32>(&out, size);
+ TMemoryOutput out(p, size + sizeof(ui32));
+ Save<ui32>(&out, size);
entry.SerializeToArcadiaStream(&out);
- }
+ }
size_t MeasureLeaf(const Proto& entry) const {
return entry.ByteSize() + sizeof(ui32);
}
- size_t SkipLeaf(const char* p) const {
- TMemoryInput in(p, sizeof(ui32));
- ui32 size;
- Load<ui32>(&in, size);
- return size;
- }
-};
+ size_t SkipLeaf(const char* p) const {
+ TMemoryInput in(p, sizeof(ui32));
+ ui32 size;
+ Load<ui32>(&in, size);
+ return size;
+ }
+};
diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp
index ad5f1457ac..e523350b80 100644
--- a/library/cpp/string_utils/quote/quote.cpp
+++ b/library/cpp/string_utils/quote/quote.cpp
@@ -119,7 +119,7 @@ static inline It1 Escape(It1 to, It2 from, It3 end, const bool* escape_map = cha
*to = 0;
- return to;
+ return to;
}
template <class It1, class It2, class It3, class FromHex>