aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/writer/json.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/json/writer/json.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 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 0aae2531b9..eca04a510a 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);
}