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

pct_string_view

Constructor

pct_string_view

Constructor

pct_string_view

pct_string_view

Constructor (deleted)

pct_string_view

Constructor

pct_string_view

Constructor

operator=

Assignment

decoded_size

Return the decoded size

operator*

Return the string as a range of decoded characters

decode

Return the string with percent-decoding

operator->

swap

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;