summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/example/jsonx/jsonx.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-03-08 11:39:25 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-03-08 12:58:10 +0100
commit1f352c6af853e5cb0dc06ea6596be77db953a9fd (patch)
tree361bae19c8e605572cafc4a656c19c748c27a9d3 /3rdparty/rapidjson/example/jsonx/jsonx.cpp
parentdfad813239c6c4259040892616f44fbbe260ab73 (diff)
update rapidjson library (nw)
Diffstat (limited to '3rdparty/rapidjson/example/jsonx/jsonx.cpp')
-rw-r--r--3rdparty/rapidjson/example/jsonx/jsonx.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/3rdparty/rapidjson/example/jsonx/jsonx.cpp b/3rdparty/rapidjson/example/jsonx/jsonx.cpp
index c253ac096df..1346b578c39 100644
--- a/3rdparty/rapidjson/example/jsonx/jsonx.cpp
+++ b/3rdparty/rapidjson/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") &&