diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:10 +0300 |
commit | 1eb755fbca92172a6aec2f57371b2b3a19dfab43 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/json/writer/json.h | |
parent | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (diff) | |
download | ydb-1eb755fbca92172a6aec2f57371b2b3a19dfab43.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/writer/json.h')
-rw-r--r-- | library/cpp/json/writer/json.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/json/writer/json.h b/library/cpp/json/writer/json.h index 57770fce8f..0aae2531b9 100644 --- a/library/cpp/json/writer/json.h +++ b/library/cpp/json/writer/json.h @@ -77,14 +77,14 @@ namespace NJsonWriter { return *this; } - /*** NaN and Inf are not valid json values, - * so if WriteNanAsString is set, writer would write string - * intead of throwing exception (default case) */ + /*** NaN and Inf are not valid json values, + * so if WriteNanAsString is set, writer would write string + * intead of throwing exception (default case) */ TBuf& SetWriteNanAsString(bool writeNanAsString = true) { - WriteNanAsString = writeNanAsString; + WriteNanAsString = writeNanAsString; return *this; - } - + } + /*** Return the string formed in the internal TStringStream. * You may only call it if the `stream' parameter was NULL * at construction time. */ @@ -141,10 +141,10 @@ namespace NJsonWriter { void CheckAndPop(EJsonEntity e); EJsonEntity StackTop() const; - template <class TFloat> - TValueContext WriteFloatImpl(TFloat f, EFloatToStringMode mode, int ndigits); + template <class TFloat> + TValueContext WriteFloatImpl(TFloat f, EFloatToStringMode mode, int ndigits); - private: + private: IOutputStream* Stream; THolder<TStringStream> StringStream; typedef TVector<const TString*> TKeys; @@ -155,7 +155,7 @@ namespace NJsonWriter { bool NeedNewline; const EHtmlEscapeMode EscapeMode; int IndentSpaces; - bool WriteNanAsString; + bool WriteNanAsString; }; // Please don't try to instantiate the classes declared below this point. |