make_pct_string_view
Return a valid percent-encoded string
Synopsis
result<pct_string_view>
make_pct_string_view(string_view s) noexcept;
Declared in file <include/boost/url/pct_string_view.hpp> on line 266
Declared in file <include/boost/url/pct_string_view.hpp> on line 425
Defined in file <src/pct_string_view.cpp> on line 48
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.