Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::PercentConverter Class Referencefinal

Percent sign encoding converter. More...

#include <PercentConverter.h>

Inheritance diagram for sese::PercentConverter:
sese::NotInstantiable

Public Types

using OutputStream = io::OutputStream
 

Public Member Functions

 PercentConverter ()=delete
 
- Public Member Functions inherited from sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

Static Public Member Functions

static void encode (const char *src, const OutputStream::Ptr &dest)
 
static bool decode (const char *src, const OutputStream::Ptr &dest)
 
static void encode (const char *src, OutputStream *dest)
 
static bool decode (const char *src, OutputStream *dest)
 
static std::string encode (const char *src)
 
static std::string decode (const char *src)
 

Static Private Attributes

static const std::set< char > URL_EXCLUDE_CHARS
 

Detailed Description

Percent sign encoding converter.

Member Typedef Documentation

◆ OutputStream

Constructor & Destructor Documentation

◆ PercentConverter()

sese::PercentConverter::PercentConverter ( )
delete

Member Function Documentation

◆ decode() [1/3]

std::string sese::PercentConverter::decode ( const char * src)
static

Decode string

Parameters
srcString to be decoded
Return values
{}Decoding failed

References sese::text::AbstractStringBuffer::append(), getHexChar(), and sese::text::AbstractStringBuffer::toString().

◆ decode() [2/3]

bool PercentConverter::decode ( const char * src,
const OutputStream::Ptr & dest )
static

◆ decode() [3/3]

bool PercentConverter::decode ( const char * src,
OutputStream * dest )
static

◆ encode() [1/3]

std::string sese::PercentConverter::encode ( const char * src)
static

◆ encode() [2/3]

void PercentConverter::encode ( const char * src,
const OutputStream::Ptr & dest )
static

◆ encode() [3/3]

void PercentConverter::encode ( const char * src,
OutputStream * dest )
static

Member Data Documentation

◆ URL_EXCLUDE_CHARS

const std::set< char > PercentConverter::URL_EXCLUDE_CHARS
staticprivate
Initial value:
{
'!', '*', '\"', '\'', '(', ')', ';', ':', '@', '&',
'=', '+', '$', ',', '/', '?', '%', '#', '[', ']', ' '}

Referenced by encode().


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