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-28 21:35:21 +0300
committerSergey Kosarevsky <sk@linderdaum.com>2016-02-28 23:29:06 +0300
commitfb5c464221aaf676c61656cff7264b454d7ead68 (patch)
tree1dd92a279d4d6ba1d112c28b2e8f4ef3d2b9f82b /include/rapidjson/prettywriter.h
parent2bbfe0d8a8df25f2a61a19544360e0a5482e673d (diff)
Added PrettyWriter::RawNumber()
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r--include/rapidjson/prettywriter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h
index 4f8eba9e..490db557 100644
--- a/include/rapidjson/prettywriter.h
+++ b/include/rapidjson/prettywriter.h
@@ -74,6 +74,12 @@ public:
bool Uint64(uint64_t u64) { PrettyPrefix(kNumberType); return Base::WriteUint64(u64); }
bool Double(double d) { PrettyPrefix(kNumberType); return Base::WriteDouble(d); }
+ bool RawNumber(const Ch* str, SizeType length, bool copy = false) {
+ (void)copy;
+ PrettyPrefix(kNumberType);
+ return Base::WriteString(str, length);
+ }
+
bool String(const Ch* str, SizeType length, bool copy = false) {
(void)copy;
PrettyPrefix(kStringType);