diff options
author | abogutskiy <abogutskiy@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
commit | 0ba74a57f9d49cfef11e512659c5847b98867342 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf | |
parent | 78454ca6aab96463952682e635688185282ccdcd (diff) | |
download | ydb-0ba74a57f9d49cfef11e512659c5847b98867342.tar.gz |
Restoring authorship annotation for <abogutskiy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf')
-rw-r--r-- | library/cpp/protobuf/json/string_transform.cpp | 4 | ||||
-rw-r--r-- | library/cpp/protobuf/json/string_transform.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/protobuf/json/string_transform.cpp b/library/cpp/protobuf/json/string_transform.cpp index ccf331033a1..7c42daa6772 100644 --- a/library/cpp/protobuf/json/string_transform.cpp +++ b/library/cpp/protobuf/json/string_transform.cpp @@ -25,8 +25,8 @@ namespace NProtobufJson { void TDoubleUnescapeTransform::Transform(TString& str) const { str = google::protobuf::UnescapeCEscapeString(Unescape(str)); - } - + } + TString TDoubleUnescapeTransform::Unescape(const TString& str) const { if (str.empty()) { return str; diff --git a/library/cpp/protobuf/json/string_transform.h b/library/cpp/protobuf/json/string_transform.h index a8e6219cacb..e4b296bc011 100644 --- a/library/cpp/protobuf/json/string_transform.h +++ b/library/cpp/protobuf/json/string_transform.h @@ -70,15 +70,15 @@ namespace NProtobufJson { void Transform(TString& str) const override; }; - + class TDoubleUnescapeTransform: public NProtobufJson::IStringTransform { public: int GetType() const override { return NProtobufJson::IStringTransform::EscapeTransform; } - + void Transform(TString& str) const override; - + private: TString Unescape(const TString& str) const; }; |