boost::urls::grammar::delim_rule

Match a character literal

Synopsis

constexpr
implementation-defined
delim_rule(char ch) noexcept;
template<class CharSet>
constexpr
implementation-defined
delim_rule(CharSet const& cs) noexcept;

Description

This matches the specified character. The value is a reference to the character in the underlying buffer, expressed as a core::string_view. The function squelch may be used to turn this into void instead. If there is no more input, the error code error::need_more is returned.

using value_type = core::string_view;

Rules are used with the function

parse .

system::result< core::string_view > rv = parse( ".", delim_rule('.') );
char        = %00-FF

Parameters

Name Description

ch

The character to match

cs

The character set to use.

See Also