|
E-MailRelay
|
A base64 codec class. More...
#include <gbase64.h>
Static Public Member Functions | |
| static std::string | encode (const std::string &s, const std::string &line_break) |
| Encodes the given string. | |
| static std::string | encode (const std::string &) |
| Encodes the given string. More... | |
| static std::string | decode (const std::string &, bool strict=false) |
| Decodes the given string. More... | |
| static bool | valid (const std::string &) |
| Returns true if the string can be decoded without any strict errors. More... | |
|
static |
Decodes the given string.
Throws an exception if strict and not a valid encoding.
Definition at line 57 of file gbase64.cpp.
|
static |
Encodes the given string.
Uses carriage-return-line-feed as the line-break string.
Definition at line 47 of file gbase64.cpp.
|
static |
Returns true if the string can be decoded without any strict errors.
An empty string is valid.
Definition at line 66 of file gbase64.cpp.
1.8.9.1