[#boost-urls-grammar-parse-02] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::parse :relfileprefix: ../../../ :mrdocs: Parse a character buffer using a rule == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/parse.hpp#L58[boost/url/grammar/parse.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:boost/urls/grammar/Rule.adoc[Rule] R> system::result<R::value_type> parse( core::string_view s, R 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. == Return Value The parsed value upon success, otherwise an error. == Parameters |=== | Name | Description | *s* | The input string | *r* | The rule to use |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#