Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 3785d1f795.
PrevUpHomeNext

query_rule

Rule for query.

Synopsis

Defined in header <boost/url/rfc/query_rule.hpp>

constexpr implementation-defined query_rule;
Value Type
using value_type = params_encoded_view;
Example

Rules are used with the function grammar::parse.

system::result< params_encoded_view > rv = grammar::parse( "format=web&id=42&compact" , query_rule );
BNF
query           = *( pchar / "/" / "?" )

query-params    = [ query-param ] *( "&" query-param )
query-param     = key [ "=" value ]
key             = *qpchar
value           = *( qpchar / "=" )
qpchar          = unreserved
                / pct-encoded
                / "!" / "$" / "'" / "(" / ")"
                / "*" / "+" / "," / ";"
                / ":" / "@" / "/" / "?"
Specification
See Also

grammar::parse, params_encoded_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext