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

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


Return a valid percent-encoded string


=== Synopsis

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

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

=== Description


If `s` is a valid percent-encoded string,
the function returns the buffer as a valid
view which may be used to perform decoding
or measurements.
Otherwise the result contains an error code.
Upon success, the returned view references
the original character buffer;
Ownership is not transferred.

=== Linear in `s.size()`.

=== Throws nothing.



