From fc8d3fe40009fab7705035e6ffdc3eb334307c80 Mon Sep 17 00:00:00 2001 From: aavdonkin Date: Thu, 10 Feb 2022 16:49:57 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- library/cpp/cgiparam/cgiparam.cpp | 8 +++--- library/cpp/containers/comptrie/protopacker.h | 36 +++++++++++++-------------- library/cpp/string_utils/quote/quote.cpp | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) (limited to 'library/cpp') diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp index f3277b8e4b2..a8275b68827 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 3e15866dc54..8f1c3892888 100644 --- a/library/cpp/containers/comptrie/protopacker.h +++ b/library/cpp/containers/comptrie/protopacker.h @@ -1,29 +1,29 @@ -#pragma once - +#pragma once + #include -#include - +#include + template 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(&out, size); + TMemoryOutput out(p, size + sizeof(ui32)); + Save(&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(&in, size); - return size; - } -}; + size_t SkipLeaf(const char* p) const { + TMemoryInput in(p, sizeof(ui32)); + ui32 size; + Load(&in, size); + return size; + } +}; diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp index e523350b80a..ad5f1457acf 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 -- cgit v1.3