Adds GenericDocument::ParseStream() overload to make SourceEncoding optional
https://github.com/pah/rapidjson/commit/77e5c6b1
This commit is contained in:
parent
02673bec74
commit
84f64ba58a
@ -788,6 +788,11 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <unsigned parseFlags, typename InputStream>
|
||||||
|
GenericDocument& ParseStream(InputStream& is) {
|
||||||
|
return ParseStream<parseFlags, Encoding, InputStream>(is);
|
||||||
|
}
|
||||||
|
|
||||||
//! Parse JSON text from a mutable string.
|
//! Parse JSON text from a mutable string.
|
||||||
/*! \tparam parseFlags Combination of ParseFlag.
|
/*! \tparam parseFlags Combination of ParseFlag.
|
||||||
\param str Mutable zero-terminated string to be parsed.
|
\param str Mutable zero-terminated string to be parsed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user