Adds GenericDocument::ParseStream() overload to make SourceEncoding optional

https://github.com/pah/rapidjson/commit/77e5c6b1
This commit is contained in:
Milo Yip 2014-06-24 22:22:37 +08:00
parent 02673bec74
commit 84f64ba58a

View File

@ -788,6 +788,11 @@ public:
return *this;
}
template <unsigned parseFlags, typename InputStream>
GenericDocument& ParseStream(InputStream& is) {
return ParseStream<parseFlags, Encoding, InputStream>(is);
}
//! Parse JSON text from a mutable string.
/*! \tparam parseFlags Combination of ParseFlag.
\param str Mutable zero-terminated string to be parsed.