...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A reference to a valid percent-encoded string.
Defined in header <boost/url/pct_string_view.hpp>
class pct_string_view : public grammar::string_view_base
Name |
Description |
---|---|
The const iterator type. |
|
The const pointer type. |
|
The const reference type. |
|
The const reverse iterator type. |
|
The difference type. |
|
The iterator type. |
|
The pointer type. |
|
The reference type. |
|
The reverse iterator type. |
|
The size type. |
|
The character traits. |
|
The value type. |
Name |
Description |
---|---|
Access a character. |
|
Return the last character. |
|
Return an iterator to the beginning. |
|
Return an iterator to the beginning. |
|
Return an iterator to the end. |
|
Return the result of comparing to another string. |
|
Return true if matching characters are found. |
|
Copy the characters to another buffer. |
|
Return a reverse iterator to the end. |
|
Return a reverse iterator to the beginning. |
|
Return a pointer to the character buffer. |
|
Return the string with percent-decoding. |
|
Return the decoded size. |
|
Return true if the string is empty. |
|
Return an iterator to the end. |
|
Return true if a matching suffix exists. |
|
Return the position of matching characters. |
|
Return the position of the first non-match. |
|
Return the position of the first match. |
|
Return the position of the last non-match. |
|
Return the position of the last match. |
|
Return the first character. |
|
Return the size. |
|
Return the maximum allowed size. |
|
Assignment. |
|
Return the string as a range of decoded characters. |
|
Access a character. |
|
Conversion. |
|
Conversion. |
|
Conversion. |
|
pct_string_view [constructor] |
Constructor. |
Return a reverse iterator to the end. |
|
Return a reverse iterator to the beginning. |
|
Return the position of matching characters. |
|
Return the size. |
|
Return true if a matching prefix exists. |
|
Return a view to part of the string. |
|
Swap. |
Name |
Description |
---|---|
Swap. |
Name |
Description |
---|---|
A constant used to represent "no position". |
Name |
Description |
---|---|
The referenced character buffer. |
Name |
Description |
---|---|
Return a valid percent-encoded string. |
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.
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 ;
Convenience header <boost/url.hpp>