12345678module juptune.http.uri;
Result uriParseQuery(
const char[] chars,
const char[] query,
const char[] next,
UriParseHints hints
);
Parses the query of a URI.
queryIsEmpty ->
percentEncodedQuery -> ?que%20ry#fragment, e.g. "?some%20query#some-fragment"
!queryIsEmpty -> ?query#fragment, e.g. "?some=query#some-fragment"
Given the string "?some=query#some-fragment", the queryparameter will be set to "some=query", and the nextparameter will be set to "#some-fragment".
The output of all outparameters is undefined if the function returns an error.
While percent encoding is validated, it is not decoded.
UriError.queryIsInvalidif the query contains an invalid character
UriError.queryIsInvalidif the query contains an invalid percent encoded character
UriError.queryIsInvalidif the first character is not '?'
A Resultindicating whether the parsing was successful or not.