Class pct_string_view
A reference to a valid percent-encoded string
Synopsis
class pct_string_view
: public grammar::string_view_base;
Declared in file <include/boost/url/pct_string_view.hpp> on line 32
Defined in file <include/boost/url/pct_string_view.hpp> on line 73
Member Functions
Name |
Description |
Constructor |
|
Constructor |
|
Constructor (deleted) |
|
Constructor |
|
Constructor |
|
Assignment |
|
Return the decoded size |
|
Return the string as a range of decoded characters |
|
Return the string with percent-decoding |
|
Swap |
Description
Objects of this type behave like a core::string_view
and have the same interface,
but offer an additional invariant: they can
only be constructed from strings containing
valid percent-escapes.
Attempting construction from a string
containing invalid or malformed percent
escapes results in an exception.
Operators
The following operators are supported between
pct_string_view
and any object that is
convertible to core::string_view
bool operator==( pct_string_view, pct_string_view ) noexcept;
bool operator!=( pct_string_view, pct_string_view ) noexcept;
bool operator<=( pct_string_view, pct_string_view ) noexcept;
bool operator< ( pct_string_view, pct_string_view ) noexcept;
bool operator> ( pct_string_view, pct_string_view ) noexcept;
bool operator>=( pct_string_view, pct_string_view ) noexcept;