18 {
19#ifdef _WIN32
20
21 _setmode(_fileno(stdin), _O_BINARY);
22 _setmode(_fileno(stdout), _O_BINARY);
23#endif
24
25
26
28 char readBuffer[65536];
31
32
33 char writeBuffer[65536];
35
36#if 1
37
39 OutputStream eos(
os, eis.GetType(), eis.HasBOM());
41#else
42
44 OutputStream eos(
os,
true);
46#endif
47
48
49
52 return 1;
53 }
54
55 return 0;
56}
Output stream wrapper with dynamically bound encoding and automatic encoding detection.
Output byte stream wrapper with statically bound encoding.
File byte stream for input using fread().
Wrapper of C file stream for output using fwrite().
SAX-style JSON parser. Use Reader for UTF8 encoding and default allocator.
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
ParseErrorCode GetParseErrorCode() const
Get the ParseErrorCode of last parsing.
size_t GetErrorOffset() const
Get the position of last parsing error in input, 0 otherwise.
Writer with indentation and spacing.
RAPIDJSON_NAMESPACE_BEGIN const RAPIDJSON_ERROR_CHARTYPE * GetParseError_En(ParseErrorCode parseErrorCode)
Maps error code of parsing into error message.
@ kParseValidateEncodingFlag
Validate encoding of JSON strings.
Dynamically select encoding according to stream's runtime-specified UTF encoding type.
UTF-16 little endian encoding.