VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
G::Base64 Class Reference

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 &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.
 

Detailed Description

A base64 codec class.

See Also
RFC 1341 section 5.2

Definition at line 37 of file gbase64.h.

Member Function Documentation

std::string G::Base64::decode ( const std::string &  s)
static

Decodes the given string.

Throws an exception if not a valid encoding.

Definition at line 131 of file gbase64.cpp.

std::string G::Base64::encode ( const std::string &  s)
static

Encodes the given string.

Uses carriage-return-line-feed as the line-break string.

Definition at line 63 of file gbase64.cpp.


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