diff options
author | Kosta <konstantin.baumann@autodesk.com> | 2014-09-04 17:20:05 +0400 |
---|---|---|
committer | Kosta <konstantin.baumann@autodesk.com> | 2014-09-04 17:20:05 +0400 |
commit | 17b1a14d622f396838fd52ba8d4fac2407a37e75 (patch) | |
tree | e7a67eaef3be43637678b9b0b0a453289ad5e407 /include/rapidjson/prettywriter.h | |
parent | 57e1c875534eb2e2c183c62e4421ad1a0bf8bf73 (diff) |
add `Key()` method to `Writer` and `PrettyWriter`
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r-- | include/rapidjson/prettywriter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index f89be1b1..2fc9b757 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -88,6 +88,8 @@ public: return Base::WriteStartObject();
}
+ bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); }
+
bool EndObject(SizeType memberCount = 0) {
(void)memberCount;
RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
|