Boost.URL Logo

PrevUpHomeNext
pct_encoded_view::pct_encoded_view (2 of 2 overloads)

Constructor.

Synopsis
pct_encoded_view(
    string_view s,
    pct_decode_opts opt = {});
Description

This constructs a view from the character buffer s, which must remain valid and unmodified until the view is no longer accessed.

Preconditions

s contains a valid percent-encoded string.

Complexity

Linear in s.size().

Parameters

Name

Description

s

The string

opt

A set of options which may be applied to the decoding algorithm. If this argument is left out, default settings will be used.

Exceptions

Type

Thrown On

std::invalid_argument

The percent-encoded is invalid


PrevUpHomeNext