[#boost-urls-make_pct_string_view] = xref:boost/urls/make_pct_string_view.adoc[boost::urls::make_pct_string_view] :relfileprefix: ../../ :mrdocs: Return a valid percent‐encoded string == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/pct_string_view.hpp#L429[boost/url/pct_string_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- system::result<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. == Complexity Linear in `s.size()`. == Exception Safety Throws nothing. == Return Value On success, the valid percent‐encoded string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to validate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#