boost::urls::grammar::literal_rule

Match a string literal exactly

Synopsis

Declared in <boost/url/grammar/literal_rule.hpp>

class literal_rule;

Description

If there is no more input, or if the end of the input is reached, and a prefix of the literal matches exactly, the error returned is error::need_more.

Value Type


using value_type = core::string_view;

Example

Rules are used with the function parse.


system::result< core::string_view > rv = parse( "HTTP", literal_rule( "HTTP" ) );

Type Aliases

Name
value_type

Member Functions

NameDescription
literal_rule [constructor]Construct from char
parse

See Also

delim_rule, parse.