aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /library/cpp/json
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json')
-rw-r--r--library/cpp/json/writer/json.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/library/cpp/json/writer/json.h b/library/cpp/json/writer/json.h
index 0aae2531b9..95c3aefb10 100644
--- a/library/cpp/json/writer/json.h
+++ b/library/cpp/json/writer/json.h
@@ -163,19 +163,19 @@ namespace NJsonWriter {
template <typename TOutContext>
class TValueWriter {
public:
- TOutContext WriteNull();
- TOutContext WriteString(const TStringBuf&);
- TOutContext WriteString(const TStringBuf& s, EHtmlEscapeMode hem);
- TOutContext WriteInt(int);
- TOutContext WriteLongLong(long long);
- TOutContext WriteULongLong(unsigned long long);
- TOutContext WriteBool(bool);
- TOutContext WriteFloat(float);
- TOutContext WriteFloat(float, EFloatToStringMode, int ndigits);
- TOutContext WriteDouble(double);
- TOutContext WriteDouble(double, EFloatToStringMode, int ndigits);
- TOutContext WriteJsonValue(const NJson::TJsonValue* value, bool sortKeys = false);
- TOutContext UnsafeWriteValue(const TStringBuf&);
+ TOutContext WriteNull();
+ TOutContext WriteString(const TStringBuf&);
+ TOutContext WriteString(const TStringBuf& s, EHtmlEscapeMode hem);
+ TOutContext WriteInt(int);
+ TOutContext WriteLongLong(long long);
+ TOutContext WriteULongLong(unsigned long long);
+ TOutContext WriteBool(bool);
+ TOutContext WriteFloat(float);
+ TOutContext WriteFloat(float, EFloatToStringMode, int ndigits);
+ TOutContext WriteDouble(double);
+ TOutContext WriteDouble(double, EFloatToStringMode, int ndigits);
+ TOutContext WriteJsonValue(const NJson::TJsonValue* value, bool sortKeys = false);
+ TOutContext UnsafeWriteValue(const TStringBuf&);
TValueContext BeginList();
TPairContext BeginObject();
@@ -253,28 +253,28 @@ namespace NJsonWriter {
TBuf& Buf;
};
-#define JSON_VALUE_WRITER_WRAP(function, params, args) \
- template <typename TOutContext> \
- TOutContext TValueWriter<TOutContext>::function params { \
- Buf.function args; \
- return TOutContext(Buf); \
- }
-
- JSON_VALUE_WRITER_WRAP(WriteNull, (), ())
- JSON_VALUE_WRITER_WRAP(WriteString, (const TStringBuf& arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteString, (const TStringBuf& s, EHtmlEscapeMode hem), (s, hem))
- JSON_VALUE_WRITER_WRAP(WriteInt, (int arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteLongLong, (long long arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteULongLong, (unsigned long long arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteBool, (bool arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteFloat, (float arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteFloat, (float arg, EFloatToStringMode mode, int ndigits), (arg, mode, ndigits))
- JSON_VALUE_WRITER_WRAP(WriteDouble, (double arg), (arg))
- JSON_VALUE_WRITER_WRAP(WriteDouble, (double arg, EFloatToStringMode mode, int ndigits), (arg, mode, ndigits))
- JSON_VALUE_WRITER_WRAP(WriteJsonValue, (const NJson::TJsonValue* value, bool sortKeys), (value, sortKeys))
- JSON_VALUE_WRITER_WRAP(UnsafeWriteValue, (const TStringBuf& arg), (arg))
-#undef JSON_VALUE_WRITER_WRAP
-
+#define JSON_VALUE_WRITER_WRAP(function, params, args) \
+ template <typename TOutContext> \
+ TOutContext TValueWriter<TOutContext>::function params { \
+ Buf.function args; \
+ return TOutContext(Buf); \
+ }
+
+ JSON_VALUE_WRITER_WRAP(WriteNull, (), ())
+ JSON_VALUE_WRITER_WRAP(WriteString, (const TStringBuf& arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteString, (const TStringBuf& s, EHtmlEscapeMode hem), (s, hem))
+ JSON_VALUE_WRITER_WRAP(WriteInt, (int arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteLongLong, (long long arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteULongLong, (unsigned long long arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteBool, (bool arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteFloat, (float arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteFloat, (float arg, EFloatToStringMode mode, int ndigits), (arg, mode, ndigits))
+ JSON_VALUE_WRITER_WRAP(WriteDouble, (double arg), (arg))
+ JSON_VALUE_WRITER_WRAP(WriteDouble, (double arg, EFloatToStringMode mode, int ndigits), (arg, mode, ndigits))
+ JSON_VALUE_WRITER_WRAP(WriteJsonValue, (const NJson::TJsonValue* value, bool sortKeys), (value, sortKeys))
+ JSON_VALUE_WRITER_WRAP(UnsafeWriteValue, (const TStringBuf& arg), (arg))
+#undef JSON_VALUE_WRITER_WRAP
+
template <typename TOutContext>
TValueContext TValueWriter<TOutContext>::BeginList() {
return Buf.BeginList();