Added Writer::Number()

This commit is contained in:
Sergey Kosarevsky 2016-02-28 18:12:57 +01:00
parent d2d5f6f919
commit eeb13bdb4c

View File

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