10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::net::win::Win32URLDecoder Class Reference

#include <Win32URLDecoder.h>

Detailed Description

Win32 implementation of tenduke::net::URLDecoder.

Inheritance diagram for tenduke::net::win::Win32URLDecoder:
tenduke::net::URLDecoder

Public Member Functions

std::string decode (const char *stringToDecode, std::size_t len) const override
 URL-decodes given string.
 
std::string decode (const char *value) const override
 URL-decodes given null-terminated string.
 

Member Function Documentation

◆ decode() [1/2]

std::string tenduke::net::win::Win32URLDecoder::decode ( const char * string,
std::size_t len ) const
overridevirtual

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.

Returns
-
Exceptions
tenduke::net::URLExceptionif the decoding failed

Implements tenduke::net::URLDecoder.

◆ decode() [2/2]

std::string tenduke::net::win::Win32URLDecoder::decode ( const char * string) const
overridevirtual

URL-decodes given null-terminated string.

This default implementation computes the length of the string and delegates to the other decode()-method.

Returns
-
Exceptions
tenduke::net::URLExceptionif the decoding failed
Parameters
string-
Returns
-

Reimplemented from tenduke::net::URLDecoder.


The documentation for this class was generated from the following files: