add Key() method to Writer and PrettyWriter

This commit is contained in:
Kosta 2014-09-04 15:20:05 +02:00
parent 57e1c87553
commit 17b1a14d62
2 changed files with 4 additions and 0 deletions

View File

@ -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));

View File

@ -131,6 +131,8 @@ public:
return 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(level_stack_.GetSize() >= sizeof(Level));