Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
grammar::parse (2 of 2 overloads)

Parse a character buffer using a rule.

Synopsis

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

template<
    class Rule>
result< typename Rule::value_type >
parse(
    string_view s,
    Rule const& r);
Description

This function parses a complete string into the specified sequence of rules. If the string is not completely consumed, an error is returned instead.

Parameters

Name

Description

s

The input string

r

The rule to use

Return Value

The parsed value upon success, otherwise an error.

See Also

result.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext