boost::urls::pct_string_view::decode
Return the string with percent‐decoding
Synopsis
template<class StringToken = string_token::return_string>
StringToken::result_type
decode(
encoding_opts opt = = {},
StringToken&& token) const;
Description
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" );
Parameters
| Name | Description |
|---|---|
opt |
The options for encoding&period; If this parameter is omitted, the default options are used&period; |
token |
An optional string token&period; If this parameter is omitted, then a new &grave;std&colon;&colon;string&grave; is returned&period; Otherwise, the function return type is the result type of the token&period; |
See Also
Created with MrDocs