boost::urls::decode
decode overloads
Synopses
Declared in <boost/url/decode.hpp>
Return a percent‐decoded string
template<string_token::StringToken StringToken = string_token::return_string>
system::result<StringToken::result_type>
decode(
core::string_view s,
encoding_opts opt = {},
StringToken&& token = {}) noexcept;
Apply percent‐decoding to an arbitrary string
system::result<std::size_t>
decode(
char* dest,
std::size_t size,
core::string_view s,
encoding_opts opt = {}) noexcept;
Return Value
-
A result containing the decoded string in the format described by the passed string token.
-
The number of characters written to the destination buffer, or an error.
Parameters
| Name | Description |
|---|---|
s |
The string to decode. |
opt |
The decoding options. If omitted, the default options are used. |
token |
A string token. |
dest |
The destination buffer to write to. |
size |
The number of writable characters pointed to by |