17 #ifndef RAPIDJSON_STREAM_H_
18 #define RAPIDJSON_STREAM_H_
72 template<
typename Stream>
83 template<
typename Stream>
90 template<
typename Stream>
96 template<
typename Stream,
typename Ch>
99 for (
size_t i = 0; i < n; i++)
112 #if defined(_MSC_VER) && _MSC_VER <= 1800
114 RAPIDJSON_DIAG_OFF(4702)
115 RAPIDJSON_DIAG_OFF(4512)
118 template <
typename InputStream,
typename Encoding = UTF8<> >
121 typedef typename Encoding::Ch
Ch;
143 #if defined(_MSC_VER) && _MSC_VER <= 1800
153 template <
typename Encoding>
155 typedef typename Encoding::Ch
Ch;
172 template <
typename Encoding>
187 template <
typename Encoding>
189 typedef typename Encoding::Ch
Ch;
213 template <
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)
mdb_size_t count(MDB_cursor *cur)
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.