E-MailRelay
|
An xtext codec class, encoding space as "+20" etc. More...
#include <gxtext.h>
Static Public Member Functions | |
static std::string | encode (std::string_view) |
Encodes the given string. More... | |
static std::string | decode (std::string_view) |
Decodes the given string. More... | |
static bool | valid (std::string_view, bool strict=false) |
Returns true if a valid encoding, or empty. More... | |
An xtext codec class, encoding space as "+20" etc.
|
static |
Decodes the given string.
Input strings must be un-strictly valid(), otherwise the result is undefined.
Definition at line 119 of file gxtext.cpp.
|
static |
Encodes the given string.
Definition at line 97 of file gxtext.cpp.
|
static |
Returns true if a valid encoding, or empty.
If strict then 'equals' and 'space' are disallowed and hex characters must be uppercase (eg. "+1A").
Definition at line 77 of file gxtext.cpp.