aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/protobuf/json
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/json')
-rw-r--r--library/cpp/protobuf/json/json2proto.cpp2
-rw-r--r--library/cpp/protobuf/json/string_transform.cpp16
-rw-r--r--library/cpp/protobuf/json/string_transform.h50
3 files changed, 34 insertions, 34 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp
index 640c10f5a5..aa185c28d1 100644
--- a/library/cpp/protobuf/json/json2proto.cpp
+++ b/library/cpp/protobuf/json/json2proto.cpp
@@ -400,7 +400,7 @@ namespace NProtobufJson {
knownFields[GetFieldName(*field, config)] = 1;
}
for (const auto& f : json.GetMap()) {
- Y_ENSURE(knownFields.contains(f.first), "unknown field " << f.first);
+ Y_ENSURE(knownFields.contains(f.first), "unknown field " << f.first);
}
}
}
diff --git a/library/cpp/protobuf/json/string_transform.cpp b/library/cpp/protobuf/json/string_transform.cpp
index 7c42daa677..818928ce91 100644
--- a/library/cpp/protobuf/json/string_transform.cpp
+++ b/library/cpp/protobuf/json/string_transform.cpp
@@ -3,7 +3,7 @@
#include <google/protobuf/stubs/strutil.h>
#include <library/cpp/string_utils/base64/base64.h>
-
+
namespace NProtobufJson {
void TCEscapeTransform::Transform(TString& str) const {
str = google::protobuf::CEscape(str);
@@ -54,11 +54,11 @@ namespace NProtobufJson {
return result;
}
- void TBase64EncodeBytesTransform::TransformBytes(TString &str) const {
- str = Base64Encode(str);
- }
-
- void TBase64DecodeBytesTransform::TransformBytes(TString &str) const {
- str = Base64Decode(str);
- }
+ void TBase64EncodeBytesTransform::TransformBytes(TString &str) const {
+ str = Base64Encode(str);
+ }
+
+ void TBase64DecodeBytesTransform::TransformBytes(TString &str) const {
+ str = Base64Decode(str);
+ }
}
diff --git a/library/cpp/protobuf/json/string_transform.h b/library/cpp/protobuf/json/string_transform.h
index e4b296bc01..0603e2f8c3 100644
--- a/library/cpp/protobuf/json/string_transform.h
+++ b/library/cpp/protobuf/json/string_transform.h
@@ -83,29 +83,29 @@ namespace NProtobufJson {
TString Unescape(const TString& str) const;
};
- class TBase64EncodeBytesTransform: public NProtobufJson::IStringTransform {
- public:
- int GetType() const override {
- return 0;
- }
-
- void Transform(TString&) const override {
- // Do not transform strings
- }
-
- void TransformBytes(TString &str) const override;
- };
-
- class TBase64DecodeBytesTransform: public NProtobufJson::IStringTransform {
- public:
- int GetType() const override {
- return 0;
- }
-
- void Transform(TString&) const override {
- // Do not transform strings
- }
-
- void TransformBytes(TString &str) const override;
- };
+ class TBase64EncodeBytesTransform: public NProtobufJson::IStringTransform {
+ public:
+ int GetType() const override {
+ return 0;
+ }
+
+ void Transform(TString&) const override {
+ // Do not transform strings
+ }
+
+ void TransformBytes(TString &str) const override;
+ };
+
+ class TBase64DecodeBytesTransform: public NProtobufJson::IStringTransform {
+ public:
+ int GetType() const override {
+ return 0;
+ }
+
+ void Transform(TString&) const override {
+ // Do not transform strings
+ }
+
+ void TransformBytes(TString &str) const override;
+ };
}