• Home
  • Raw
  • Download

Lines Matching refs:is

5 … (typedef of `GenericReader<...>`) is the SAX-style parser for JSON, and `Writer` (typedef of `Gen…
13 For example, here is a JSON.
118 `Null()` is called when the `Reader` encounters a JSON null value.
120 `Bool(bool)` is called when the `Reader` encounters a JSON true or false value.
124is called when the `Reader` encounters a string. The first parameter is pointer to the string. The…
126is a set of name-value pairs. If the object contains members it first calls `Key()` for the name o…
128is similar to object but simpler. At the beginning of an array, the `Reader` calls `BeginArary()`.…
136 As mentioned before, `Reader` is a typedef of a template class `GenericReader`:
157 Note that, the default character type of `UTF16` is `wchar_t`. So this `reader`needs to call `Strin…
159 The third template parameter `Allocator` is the allocator type for internal data structure (actuall…
163 The one and only one function of `Reader` is to parse JSON.
167 bool Parse(InputStream& is, Handler& handler);
171 bool Parse(InputStream& is, Handler& handler);
180 `Writer` is very easy to use. If your application only need to converts some data into JSON, it may…
224 …` overloads. One is the same as defined in handler concept with 3 parameters. It can handle string…
231 1. `Writer` must output a well-formed JSON. If there is incorrect event sequence (e.g. `Int()` just…
237 Anyway, using `Writer` API is even simpler than generating a JSON by ad hoc methods.
241 …gn difference to `Reader`. `Writer` is a template class, not a typedef. There is no `GenericWriter…
256 The `OutputStream` template parameter is the type of output stream. It cannot be deduced and must b…
262 The last one, `Allocator` is the type of allocator, which is used for allocating internal data stru…
268 …hile the output of `Writer` is the most condensed JSON without white-spaces, suitable for network …
272 …` is exactly the same as `Writer`, expect that `PrettyWriter` provides a `SetIndent(Ch indentChar,…
276 …), or the last matching `EndObject()` or `EndArray()` event, is handled, the output JSON is well-f…
278 When a JSON is complete, the `Writer` cannot accept any new events. Otherwise the output will be in…
284 `Document`'s parsing capability is completely based on `Reader`. Actually `Document` is a handler w…
389 …d into `MessageMap`. Since `MessageMap` is a `std::map`, the printing order are sorted by the key.…
391is an empty object. As it is an object, `MessageHandler::StartObject()` will be called. However, a…
442 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
451 if (!reader.Parse(is, filter)) {
460 Note that, it is incorrect to simply capitalize the JSON as a string. For example: