![]() |
Home | Libraries | People | FAQ | More |
Rule for query.
Defined in header <boost/url/rfc/query_rule.hpp>
constexpr implementation-defined query_rule;
using value_type = [link url.ref.boost__urls__params_encoded_view `params_encoded_view`];
Rules are used with the function grammar::parse
.
system::result< params_encoded_view > rv = [link url.ref.boost__urls__grammar__parse `grammar::parse`]( "format=web&id=42&compact" , [link url.ref.boost__urls__query_rule `query_rule`] );
query = *( pchar / "/" / "?" ) query-params = [ query-[link url.ref.boost__urls__param `param`] ] *( "&" query-[link url.ref.boost__urls__param `param`] ) query-[link url.ref.boost__urls__param `param`] = key [ "=" value ] key = *qpchar value = *( qpchar / "=" ) qpchar = unreserved / pct-encoded / "!" / "$" / "'" / "(" / ")" / "*" / "+" / "," / ";" / ":" / "@" / "/" / "?"
grammar::parse
,
params_encoded_view
.
Convenience header <boost/url.hpp>