Lines Matching refs:use
3 …::Stream` is a concept for reading/writing JSON. Here we first show how to use streams provided. A…
37 Note that, `StringStream` is a typedef of `GenericStringStream<UTF8<> >`, user may use another enco…
66 When parsing a JSON from file, you may read the whole JSON into memory and use ``StringStream`` abo…
68 However, if the JSON is big, or memory is limited, you can use `FileReadStream`. It only read a par…
80 FILE* fp = fopen("big.json", "rb"); // non-Windows use "r"
93 Apart from reading file, user can also use `FileReadStream` to read `stdin`.
109 FILE* fp = fopen("output.json", "wb"); // non-Windows use "w"
130 …use `EncodedInputStream` and `EncodedOutputStream`. If the stream can be UTF-8, UTF-16LE, UTF-16BE…
146 FILE* fp = fopen("utf16le.json", "rb"); // non-Windows use "r"
171 FILE* fp = fopen("output_utf32le.json", "wb"); // non-Windows use "w"
187 …ream` will detection encoding by BOM first. If BOM is unavailable, it will use characteristics of…
189 …utStream` requires a character type which can hold at least 32-bit. We may use `unsigned`, as in t…
199 FILE* fp = fopen("any.json", "rb"); // non-Windows use "r"
218 Similarly, to choose encoding for output during runtime, we can use `AutoUTFOutputStream`. This cla…
315 User can use it to wrap instances of `std::stringstream`, `std::ifstream`.
357 User can use it to wrap instances of `std::stringstream`, `std::ofstream`.