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 master branch, built from commit 80e75653fc.
PrevUpHomeNext

grammar::not_empty_rule

Match another rule, if the result is not empty.

Synopsis

Defined in header <boost/url/grammar/not_empty_rule.hpp>

template<
    class Rule>
constexpr implementation-defined
not_empty_rule(
    Rule r);
Description

This adapts another rule such that when an empty string is successfully parsed, the result will be an error.

Value Type
using value_type = typename Rule::value_type;
Example

Rules are used with the function parse.

result< decode_view > rv = parse( "Program%20Files",
    not_empty_rule( pct_encoded_rule( unreserved_chars ) ) );
Parameters

Name

Description

r

The rule to match

See Also

parse, pct_encoded_rule, unreserved_chars.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext