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 0da16e0695.
PrevUpHomeNext

uri_rule

Rule for URI.

Synopsis

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

constexpr implementation-defined uri_rule {};
Value Type
using value_type = url_view;
Example

Rules are used with the function grammar::parse.

system::result< url_view > rv = grammar::parse( "https://www.example.com/index.htm?id=guest#s1" , uri_rule );
BNF
URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
Specification
See Also

grammar::parse, parse_uri, url_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext