boost::urls::decode_view::decode_view

Constructor

Synopsis

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

explicit
decode_view(
    pct_string_view s,
    encoding_opts opt = = {}) noexcept;

Description

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

decode_view ds( "Program%20Files" );
this->encoded() == s

Linear in s.size().

Exceptions thrown on invalid input.

Exceptions

Name Thrown on

The

string contains an invalid percent encoding.

Parameters

Name Description

s

A percent-encoded string that has already been validated.

opt

The options for decoding. If this parameter is omitted, the default options are used.