21 _setmode(_fileno(stdin), _O_BINARY);
22 _setmode(_fileno(stdout), _O_BINARY);
28 char readBuffer[65536];
33 char writeBuffer[65536];
44 OutputStream eos(os,
true);
45 PrettyWriter<OutputStream, UTF8<>,
UTF16LE<> > writer(eos);
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
Output byte stream wrapper with statically bound encoding.
ParseErrorCode GetParseErrorCode() const
Get the ParseErrorCode of last parsing.
Wrapper of C file stream for input using fread().
Output stream wrapper with dynamically bound encoding and automatic encoding detection.
SAX-style JSON parser. Use Reader for UTF8 encoding and default allocator.
File byte stream for input using fread().
Validate encoding of JSON strings.
size_t GetErrorOffset() const
Get the position of last parsing error in input, 0 otherwise.
UTF-16 little endian encoding.
RAPIDJSON_NAMESPACE_BEGIN const RAPIDJSON_ERROR_CHARTYPE * GetParseError_En(ParseErrorCode parseErrorCode)
Maps error code of parsing into error message.
Writer with indentation and spacing.