10Duke Scale C++ Client
Loading...
Searching...
No Matches
URLDecoder Class Referenceabstract

#include <URLDecoder.h>

Detailed Description

Service to URL-decode a string.

Inheritance diagram for URLDecoder:
tenduke::test::mocks::URLDecoderMock

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.
 

Member Function Documentation

◆ decode() [1/2]

std::string tenduke::net::URLDecoder::decode ( const char * string) const
virtual

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
-

◆ decode() [2/2]

virtual std::string tenduke::net::URLDecoder::decode ( const char * string,
std::size_t len ) const
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.

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

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