:relfileprefix: ../../../
[#2E4C91D61AE7105A46D8A3716D5CAEBF3534AFCC]

= Function parse

pass:v,q[Parse a character buffer using a rule]


== Synopsis

Declared in header `</boost/url/grammar/parse.hpp#L65[boost/url/grammar/parse.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<class R>
result<Rule::value_type>
parse(
    string_view s,
    const Rule& r);
----

== Description

pass:v,q[This function parses a complete string into] pass:v,q[the specified sequence of rules. If the]
pass:v,q[string is not completely consumed, an]
pass:v,q[error is returned instead.]



== Return Value

* `result` 


== Parameters

|===
| Name | Type 

| *s*
| `string_view`

| *r*
| ``

|===



