Return the string with percent-decoding
template<
class StringToken = return_string>
StringToken::result_type
decode(
encoding_opts opt,
StringToken&& token);
Declared in file <boost/url/pct_string_view.hpp> at line 345
This function converts percent escapes in the string into ordinary characters and returns the result. When called with no arguments, the return type is `std::string`. Otherwise, the return type and style of output is determined by which string token is passed.
assert( pct_string_view( "Program%20Files" ).decode() == "Program Files" );
Linear in `this->size()`.
Calls to allocate may throw. String tokens may throw exceptions.