16 template<
typename OutputHandler>
20 bool Null() {
return out_.Null(); }
21 bool Bool(
bool b) {
return out_.Bool(b); }
22 bool Int(
int i) {
return out_.Int(i); }
23 bool Uint(
unsigned u) {
return out_.Uint(u); }
26 bool Double(
double d) {
return out_.Double(d); }
27 bool RawNumber(
const char* str,
SizeType length,
bool copy) {
return out_.RawNumber(str, length, copy); }
30 for (
SizeType i = 0; i < length; i++)
31 buffer_.push_back(static_cast<char>(std::toupper(str[i])));
32 return out_.String(&buffer_.front(), length,
true);
35 bool Key(
const char* str,
SizeType length,
bool copy) {
return String(str, length, copy); }
51 char readBuffer[65536];
55 char writeBuffer[65536];
61 if (!reader.
Parse(is, filter)) {
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
ParseErrorCode GetParseErrorCode() const
Get the ParseErrorCode of last parsing.
bool String(const char *str, SizeType length, bool)
Wrapper of C file stream for input using fread().
bool EndArray(SizeType elementCount)
bool Key(const char *str, SizeType length, bool copy)
unsigned __int64 uint64_t
CapitalizeFilter(OutputHandler &out)
bool EndObject(SizeType memberCount)
File byte stream for input using fread().
std::vector< char > buffer_
size_t GetErrorOffset() const
Get the position of last parsing error in input, 0 otherwise.
bool RawNumber(const char *str, SizeType length, bool copy)
RAPIDJSON_NAMESPACE_BEGIN const RAPIDJSON_ERROR_CHARTYPE * GetParseError_En(ParseErrorCode parseErrorCode)
Maps error code of parsing into error message.