:relfileprefix: ../../../
[#boost-urls-params_encoded_view-08friend]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::parse_query


Parse a string and return an encoded params view


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/params_encoded_view.hpp#L256[boost/url/params_encoded_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
friend
system::result<xref:boost/urls/params_encoded_view.adoc[params_encoded_view]>
parse_query(core::string_view s) noexcept;
----

=== Description


This function parses the string and returns the
corresponding params object if the string is valid,
otherwise returns an error.
[,cpp]
----
query         = *( pchar / "/" / "?" )
----

=== No-throw guarantee.



=== See Also


xref:boost/urls/params_encoded_view/2constructor-02.adoc[params_encoded_view]
.



