diff options
author | svshevtsov <svshevtsov@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
commit | de89752358147d7b25ef59a85b431bb564068a49 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/json/json_writer.h | |
parent | 657337012a264721d58c470b4e9e796611f3c492 (diff) | |
download | ydb-de89752358147d7b25ef59a85b431bb564068a49.tar.gz |
Restoring authorship annotation for <svshevtsov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/json_writer.h')
-rw-r--r-- | library/cpp/json/json_writer.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/json/json_writer.h b/library/cpp/json/json_writer.h index 729aaa939b..c7f5c9499a 100644 --- a/library/cpp/json/json_writer.h +++ b/library/cpp/json/json_writer.h @@ -13,10 +13,10 @@ namespace NJson { struct TJsonWriterConfig { - constexpr static ui32 DefaultDoubleNDigits = 10; - constexpr static ui32 DefaultFloatNDigits = 6; - constexpr static EFloatToStringMode DefaultFloatToStringMode = PREC_NDIGITS; - + constexpr static ui32 DefaultDoubleNDigits = 10; + constexpr static ui32 DefaultFloatNDigits = 6; + constexpr static EFloatToStringMode DefaultFloatToStringMode = PREC_NDIGITS; + inline TJsonWriterConfig& SetUnbuffered(bool v) noexcept { Unbuffered = v; @@ -35,9 +35,9 @@ namespace NJson { return *this; } - ui32 DoubleNDigits = DefaultDoubleNDigits; - ui32 FloatNDigits = DefaultFloatNDigits; - EFloatToStringMode FloatToStringMode = DefaultFloatToStringMode; + ui32 DoubleNDigits = DefaultDoubleNDigits; + ui32 FloatNDigits = DefaultFloatNDigits; + EFloatToStringMode FloatToStringMode = DefaultFloatToStringMode; bool FormatOutput = false; bool SortKeys = false; bool ValidateUtf8 = true; @@ -49,9 +49,9 @@ namespace NJson { class TJsonWriter { IOutputStream* Out; NJsonWriter::TBuf Buf; - const ui32 DoubleNDigits; - const ui32 FloatNDigits; - const EFloatToStringMode FloatToStringMode; + const ui32 DoubleNDigits; + const ui32 FloatNDigits; + const EFloatToStringMode FloatToStringMode; const bool SortKeys; const bool ValidateUtf8; const bool DontEscapeStrings; |