Function pct_string_view::pct_string_view

Constructor

Synopsis

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

pct_string_view(
    const char* s,
    std::size_t len);

Description

The newly constructed string references the specified character buffer. Ownership is not transferred.

Postconditions

this->data() == s && this->size() == len

Complexity

Linear in len.

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Name Thrown on

system_error

The string contains an invalid percent encoding.

Parameters

Name Description

s,

len The string to construct from.