Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 20a7dc9240.
PrevUpHomeNext
decode_view::decode_view (2 of 2 overloads)

Constructor.

Synopsis
decode_view(
    pct_string_view s,
    encoding_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.

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

Linear in s.size().

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

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.


PrevUpHomeNext