Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
decode_view::decode_view (2 of 2 overloads)

Constructor.

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

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

The encoded string.

opt

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


PrevUpHomeNext