Return a query params view from a parsed string, using query-params bnf.
Defined in header <boost/url/params_encoded_view.hpp>
result< params_encoded_view > parse_query_params( string_view s);
This function parses the string and returns the corresponding query params object if the string is valid, otherwise sets the error and returns an empty range. The query string should not include the leading question mark.
query-params = query-param *( "&" query-param ) query-param = key [ "=" value ] key = *qpchar value = *( qpchar / "=" ) qpchar = unreserved / pct-encoded / "!" / "$" / "'" / "(" / ")" / "*" / "+" / "," / ";" / ":" / "@" / "/" / "?"
No-throw guarantee.
The encoded parameter view, or an error if parsing failed.
Name |
Description |
---|---|
|
The string to parse |
Convenience header <boost/url.hpp>