boost::urls::grammar::token_rule

Match a non-empty string of characters from a set

Synopsis

Declared in header <boost/url/grammar/token_rule.hpp>

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

Description

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( "abcdef", token_rule( alpha_chars ) );
token     = 1*( ch )

Parameters

Name Description

cs

The character set to use

See Also