|
10Duke Enterprise C++ Client
|
#include <URLDecoder.h>
Service to URL-decode a string.
Public Member Functions | |
| virtual std::string | decode (const char *string, std::size_t len) const =0 |
| URL-decodes given string. | |
| virtual std::string | decode (const char *string) const |
| URL-decodes given null-terminated string. | |
|
virtual |
URL-decodes given null-terminated string.
This default implementation computes the length of the string and delegates to the other decode()-method.
| tenduke::net::URLException | if the decoding failed |
| string | - |
Reimplemented in LibCurlURLDecoder, tenduke::net::curl::LibCurlURLDecoder, and tenduke::net::win::Win32URLDecoder.
|
pure virtual |
URL-decodes given string.
This assumes that the encoded value decodes to e.g. UTF-8 encoded string. Technically the decoded data could be binary data.
| tenduke::net::URLException | if the decoding failed |
Implemented in LibCurlURLDecoder, tenduke::net::curl::LibCurlURLDecoder, and tenduke::net::win::Win32URLDecoder.