...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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
.
result< decode_view > rv = parse( "Program%20Files", not_empty_rule( pct_encoded_rule( unreserved_chars ) ) );
Name |
Description |
---|---|
|
The rule to match |
parse
,
pct_encoded_rule
,
unreserved_chars
.
Convenience header <boost/url/grammar.hpp>