Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pct_string_view::make_pct_string_view

Return a validated percent-encoded string.

Synopsis

Defined in header <boost/url/pct_string_view.hpp>

friend result< pct_string_view >
make_pct_string_view(
    string_view s);
Description

This function attempts to construct a percent-encoded string from a character buffer. Upon success, the valid string is returned. Otherwise the result contains an error code. The new string will reference the existing character buffer. Ownership is not transferred.

Complexity

Linear in s.size().

Exception Safety

Throws nothing.

s The string to construct from.

Convenience header <boost/url.hpp>


PrevUpHomeNext