<boost/url/grammar/not_empty_rule.hpp>
template<Rule R>
constexpr
/* implementation-defined */
not_empty_rule(R const& 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 = parse( "Program%20Files",
not_empty_rule( pct_encoded_rule( unreserved_chars ) ) );
Name | Description |
---|---|
r | The rule to match |