From eeb13bdb4caf2fff4c4bf054be8ba47e6aaf395b Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Sun, 28 Feb 2016 18:12:57 +0100 Subject: [PATCH] Added Writer::Number() --- include/rapidjson/writer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/rapidjson/writer.h b/include/rapidjson/writer.h index 4bda076..7df5696 100644 --- a/include/rapidjson/writer.h +++ b/include/rapidjson/writer.h @@ -171,6 +171,12 @@ public: */ bool Double(double d) { Prefix(kNumberType); return WriteDouble(d); } + bool Number(const Ch* str, SizeType length, bool copy = false) { + (void)copy; + Prefix(kNumberType); + return WriteString(str, length); + } + bool String(const Ch* str, SizeType length, bool copy = false) { (void)copy; Prefix(kStringType);