40 G_EXCEPTION( Error ,
"base64 encoding error" ) ;
42 static std::string
encode(
const std::string & s ,
const std::string & line_break ) ;
45 static std::string
encode(
const std::string & s ) ;
49 static std::string
decode(
const std::string & ) ;
53 static bool valid(
const std::string & ) ;
58 static inline g_uint32_t numeric(
char c ) ;
59 static inline void accumulate_8( g_uint32_t & n , std::string::const_iterator & ,
60 std::string::const_iterator ,
int & ) ;
61 static inline size_t hi_6( g_uint32_t n ) ;
62 static inline void generate_6( g_uint32_t & n ,
int & i , std::string & result ) ;
63 static inline char to_char( g_uint32_t n ) ;
64 static inline size_t index(
char c ,
bool & error ) ;
65 static inline size_t accumulate_6( g_uint32_t & n ,
char c_in ,
int & ,
bool & error ) ;
66 static inline g_uint32_t hi_8( g_uint32_t n ) ;
67 static inline void generate_8( g_uint32_t & n ,
int & i , std::string & result ) ;
68 static std::string
decode(
const std::string & s ,
bool & error ) ;
static bool valid(const std::string &)
Returns true if the string can be decoded.
static std::string decode(const std::string &)
Decodes the given string.
static std::string encode(const std::string &s, const std::string &line_break)
Encodes the given string.