Added GenericDocument::Number()
This commit is contained in:
parent
334461b421
commit
4f94ec9b0b
@ -2325,6 +2325,14 @@ public:
|
|||||||
bool Uint64(uint64_t i) { new (stack_.template Push<ValueType>()) ValueType(i); return true; }
|
bool Uint64(uint64_t i) { new (stack_.template Push<ValueType>()) ValueType(i); return true; }
|
||||||
bool Double(double d) { new (stack_.template Push<ValueType>()) ValueType(d); return true; }
|
bool Double(double d) { new (stack_.template Push<ValueType>()) ValueType(d); return true; }
|
||||||
|
|
||||||
|
bool Number(const Ch* str, SizeType length, bool copy) {
|
||||||
|
if (copy)
|
||||||
|
new (stack_.template Push<ValueType>()) ValueType(str, length, GetAllocator());
|
||||||
|
else
|
||||||
|
new (stack_.template Push<ValueType>()) ValueType(str, length);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool String(const Ch* str, SizeType length, bool copy) {
|
bool String(const Ch* str, SizeType length, bool copy) {
|
||||||
if (copy)
|
if (copy)
|
||||||
new (stack_.template Push<ValueType>()) ValueType(str, length, GetAllocator());
|
new (stack_.template Push<ValueType>()) ValueType(str, length, GetAllocator());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user