Merge pull request #13 from pah/fixes/107
GenericDocument::ParseStream: make SourceEncoding optional
This commit is contained in:
commit
a56a051737
@ -734,6 +734,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