Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
pct_string_view::make_pct_string_view

Return a valid 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

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.

Parameters

Name

Description

s

The string to validate.

Convenience header <boost/url.hpp>


PrevUpHomeNext