Lines Matching refs:reader
56 #include "rapidjson/reader.h"
88 Reader reader;
90 reader.Parse(ss, handler);
151 … For example, to parse a UTF-8 stream and outputs UTF-16 string events, you can define a reader by:
154 GenericReader<UTF8<>, UTF16<> > reader;
157 Note that, the default character type of `UTF16` is `wchar_t`. So this `reader`needs to call `Strin…
284 … `Reader`. Actually `Document` is a handler which receives events from a reader to build a DOM dur…
291 #include "rapidjson/reader.h"
346 Reader reader;
349 if (reader.Parse(ss, handler))
352 ParseErrorCode e = reader.GetParseErrorCode();
353 size_t o = reader.GetErrorOffset();
400 #include "rapidjson/reader.h"
439 // Prepare JSON reader and input stream.
440 Reader reader;
449 // JSON reader parse from the input stream and let writer generate the output.
451 if (!reader.Parse(is, filter)) {
452 …fprintf(stderr, "\nError(%u): %s\n", (unsigned)reader.GetErrorOffset(), GetParseError_En(reader.Ge…