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. More... | |
static std::string | encode (const std::string &s) |
Encodes the given string. More... | |
static std::string | decode (const std::string &) |
Decodes the given string. More... | |
static bool | valid (const std::string &) |
Returns true if the string can be decoded. More... | |
|
static |
Decodes the given string.
Throws an exception if not a valid encoding.
Definition at line 131 of file gbase64.cpp.
|
static |
Encodes the given string.
Definition at line 68 of file gbase64.cpp.
|
static |
Encodes the given string.
Uses carriage-return-line-feed as the line-break string.
Definition at line 63 of file gbase64.cpp.
|
static |
Returns true if the string can be decoded.
Definition at line 166 of file gbase64.cpp.