Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosarevsky <sk@linderdaum.com>2016-02-29 22:21:28 +0300
committerSergey Kosarevsky <sk@linderdaum.com>2016-02-29 22:21:28 +0300
commit5642a81f248cc7e96c8c6898335186a695c41191 (patch)
tree193fb7ead0486600c77048d1f746bc97d0ad104b /example/jsonx/jsonx.cpp
parenta9c79db5808867f6654c12ac2e6563856e2f2953 (diff)
Added JsonxWriter::RawNumber()
Diffstat (limited to 'example/jsonx/jsonx.cpp')
-rw-r--r--example/jsonx/jsonx.cpp7
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") &&