[#9A0212FC07D095C80A34528E74B46D8E2860C859]

Function make_pct_string_view

Return a valid percent-encoded string

Synopsis

            system::result
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.