Home | Libraries | People | FAQ | More |
Match a series of rules in order.
Defined in header <boost/url/grammar/tuple_rule.hpp>
template< class... Rules> constexpr implementation-defined tuple_rule( Rules... rn);
This matches a series of rules in the order specified. Upon success the input will be adjusted to point to the first unconsumed character. There is no implicit specification of linear white space between each rule.
using value_type = see-below;
The sequence rule usually returns a std::tuple
containing the the value_type
of each corresponding rule in the sequence, except that void
values are removed. However, if there is exactly one non-void value type
T
, then the sequence rule
returns result<T>
instead
of result<tuple<...>>
.
Rules are used with the function parse
.
result< std::tuple< unsigned char, unsigned char, unsigned char, unsigned char > > rv = parse( "192.168.0.1", tuple_rule( dec_octet_rule, squelch( delim_rule('.') ), dec_octet_rule, squelch( delim_rule('.') ), dec_octet_rule, squelch( delim_rule('.') ), dec_octet_rule ) );
sequence = rule1 rule2 rule3...
Name |
Description |
---|---|
|
A list of one or more rules to match |
dec_octet_rule
, delim_rule
, parse
, squelch
.
Convenience header <boost/url/grammar.hpp>