diff options
author | Sergey Kosarevsky <sk@linderdaum.com> | 2016-02-29 22:21:28 +0300 |
---|---|---|
committer | Sergey Kosarevsky <sk@linderdaum.com> | 2016-02-29 22:21:28 +0300 |
commit | 5642a81f248cc7e96c8c6898335186a695c41191 (patch) | |
tree | 193fb7ead0486600c77048d1f746bc97d0ad104b /example/jsonx/jsonx.cpp | |
parent | a9c79db5808867f6654c12ac2e6563856e2f2953 (diff) |
Added JsonxWriter::RawNumber()
Diffstat (limited to 'example/jsonx/jsonx.cpp')
-rw-r--r-- | example/jsonx/jsonx.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/jsonx/jsonx.cpp b/example/jsonx/jsonx.cpp index c253ac09..1346b578 100644 --- a/example/jsonx/jsonx.cpp +++ b/example/jsonx/jsonx.cpp @@ -57,6 +57,13 @@ public: return WriteNumberElement(buffer, sprintf(buffer, "%.17g", d)); } + bool RawNumber(const char* str, SizeType length, bool) { + return + WriteStartElement("number") && + WriteEscapedText(str, length) && + WriteEndElement("number"); + } + bool String(const char* str, SizeType length, bool) { return WriteStartElement("string") && |