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 a snapshot of the master branch, built from commit 9fc5439165.
PrevUpHomeNext

make_pct_string_view

Return a validated percent-encoded string.

Synopsis

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

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