17#ifndef RAPIDJSON_STREAM_H_
18#define RAPIDJSON_STREAM_H_
72template<
typename Stream>
83template<
typename Stream>
90template<
typename Stream>
96template<
typename Stream,
typename Ch>
99 for (
size_t i = 0; i < n; i++)
112#if defined(_MSC_VER) && _MSC_VER <= 1800
114RAPIDJSON_DIAG_OFF(4702)
115RAPIDJSON_DIAG_OFF(4512)
118template <
typename InputStream,
typename Encoding = UTF8<> >
121 typedef typename Encoding::Ch
Ch;
143#if defined(_MSC_VER) && _MSC_VER <= 1800
153template <
typename Encoding>
155 typedef typename Encoding::Ch
Ch;
172template <
typename Encoding>
187template <
typename Encoding>
189 typedef typename Encoding::Ch
Ch;
213template <
typename Encoding>
GenericStreamWrapper(InputStream &is)
Concept for encoding of Unicode characters.
Concept for reading and writing characters.
UTFType
Runtime-specified UTF encoding type of a stream.
#define RAPIDJSON_ASSERT(x)
Assertion.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
common definitions and configuration
GenericStringStream< UTF8<> > StringStream
String stream with UTF8 encoding.
GenericInsituStringStream< UTF8<> > InsituStringStream
Insitu string stream with UTF8 encoding.
void PutReserve(Stream &stream, size_t count)
Reserve n characters for writing to a stream.
void PutN(Stream &stream, Ch c, size_t n)
Put N copies of a character to a stream.
void PutUnsafe(Stream &stream, typename Stream::Ch c)
Write character to a stream, presuming buffer is reserved.
A read-write string stream.
GenericInsituStringStream(Ch *src)
const Ch * head_
Original head of the string.
GenericStringStream(const Ch *src)
const Ch * src_
Current read position.
Provides additional information for stream.