![]() |
Home | Libraries | People | FAQ | More |
Match another rule, if the result is not empty.
Defined in header <boost/url/grammar/not_empty_rule.hpp>
template< class Rule> constexpr implementation-defined not_empty_rule( Rule r);
This adapts another rule such that when an empty string is successfully parsed, the result is an error.
using value_type = typename Rule::value_type;
Rules are used with the function parse
.
system::result< decode_view > rv = [link url.ref.boost__urls__grammar__parse `parse`]( "Program%20Files" , [link url.ref.boost__urls__grammar__not_empty_rule `not_empty_rule`]( [link url.ref.boost__urls__pct_encoded_rule `pct_encoded_rule`]( [link url.ref.boost__urls__unreserved_chars `unreserved_chars`] ) ) );
Name |
Description |
---|---|
|
The rule to match |
parse
,
pct_encoded_rule
,
unreserved_chars
.
Convenience header <boost/url/grammar.hpp>