aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/writer/json.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/json/writer/json.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/writer/json.h')
-rw-r--r--library/cpp/json/writer/json.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/json/writer/json.h b/library/cpp/json/writer/json.h
index eca04a510a..0aae2531b9 100644
--- a/library/cpp/json/writer/json.h
+++ b/library/cpp/json/writer/json.h
@@ -39,7 +39,7 @@ namespace NJsonWriter {
TVector<EJsonEntity> Stack;
};
- class TBuf : TNonCopyable {
+ class TBuf : TNonCopyable {
public:
TBuf(EHtmlEscapeMode mode = HEM_DONT_ESCAPE_HTML, IOutputStream* stream = nullptr);
@@ -183,8 +183,8 @@ namespace NJsonWriter {
protected:
TValueWriter(TBuf& buf)
: Buf(buf)
- {
- }
+ {
+ }
friend class TBuf;
protected:
@@ -196,25 +196,25 @@ namespace NJsonWriter {
TBuf& EndList() {
return Buf.EndList();
}
- TString Str() const {
- return Buf.Str();
- }
-
+ TString Str() const {
+ return Buf.Str();
+ }
+
private:
TValueContext(TBuf& buf)
: TValueWriter<TValueContext>(buf)
- {
- }
+ {
+ }
friend class TBuf;
friend class TValueWriter<TValueContext>;
};
class TAfterColonContext: public TValueWriter<TPairContext> {
private:
- TAfterColonContext(TBuf& iBuf)
- : TValueWriter<TPairContext>(iBuf)
- {
- }
+ TAfterColonContext(TBuf& iBuf)
+ : TValueWriter<TPairContext>(iBuf)
+ {
+ }
friend class TBuf;
friend class TPairContext;
};
@@ -275,15 +275,15 @@ namespace NJsonWriter {
JSON_VALUE_WRITER_WRAP(UnsafeWriteValue, (const TStringBuf& arg), (arg))
#undef JSON_VALUE_WRITER_WRAP
- template <typename TOutContext>
- TValueContext TValueWriter<TOutContext>::BeginList() {
+ template <typename TOutContext>
+ TValueContext TValueWriter<TOutContext>::BeginList() {
return Buf.BeginList();
}
- template <typename TOutContext>
- TPairContext TValueWriter<TOutContext>::BeginObject() {
+ template <typename TOutContext>
+ TPairContext TValueWriter<TOutContext>::BeginObject() {
return Buf.BeginObject();
}
- TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback);
+ TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback);
}