43 static std::string
encode(
const std::string & s ,
const std::string & line_break ) ;
46 static std::string
encode(
const std::string & s ) ;
50 static std::string
decode(
const std::string & ) ;
54 static bool valid(
const std::string & ) ;
59 static inline g_uint32_t numeric(
char c ) ;
60 static inline void accumulate_8( g_uint32_t & n , std::string::const_iterator & ,
61 std::string::const_iterator ,
int & ) ;
62 static inline size_t hi_6( g_uint32_t n ) ;
63 static inline void generate_6( g_uint32_t & n ,
int & i , std::string & result ) ;
64 static inline char to_char( g_uint32_t n ) ;
65 static inline size_t index(
char c ,
bool & error ) ;
66 static inline size_t accumulate_6( g_uint32_t & n ,
char c_in ,
int & ,
bool & error ) ;
67 static inline g_uint32_t hi_8( g_uint32_t n ) ;
68 static inline void generate_8( g_uint32_t & n ,
int & i , std::string & result ) ;
69 static std::string
decode(
const std::string & s ,
bool & error ) ;
static bool valid(const std::string &)
Returns true if the string can be decoded.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
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.