summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/example/jsonx/jsonx.cpp
diff options
context:
space:
mode:
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") &&