stlencoders  1.1.3
Public Types | Static Public Member Functions | List of all members
stlencoders::base32_traits< char > Struct Template Reference

Character encoding traits specialization for char. More...

Public Types

typedef char char_type
 The encoding character type. More...
 
typedef unsigned char int_type
 An integral type representing an octet. More...
 

Static Public Member Functions

static bool eq (const char_type &lhs, const char_type &rhs)
 Returns whether the character lhs is to be treated equal to the character rhs. More...
 
static bool eq_int_type (const int_type &lhs, const int_type &rhs)
 Returns whether the integral value lhs is to be treated equal to rhs. More...
 
static char_type to_char_type (const int_type &c)
 Returns the character representation of a 5-bit value. More...
 
static char_type to_char_type_upper (const int_type &c)
 Returns the uppercase character representation of a 5-bit value. More...
 
static char_type to_char_type_lower (const int_type &c)
 Returns the lowercase character representation of a 5-bit value. More...
 
static int_type to_int_type (const char_type &c)
 Returns the 5-bit value represented by a character, or inv() for characters not in the encoding alphabet. More...
 
static int_type inv ()
 Returns an integral value represented by no character in the encoding alphabet. More...
 
static char_type pad ()
 Returns the character used to perform padding at the end of a character range. More...
 

Detailed Description

template<>
struct stlencoders::base32_traits< char >

Character encoding traits specialization for char.

This character encoding traits class defines the encoding alphabet for the base32 encoding scheme as defined in RFC 4648 for the encoding character type char.

Member Typedef Documentation

typedef char stlencoders::base32_traits< char >::char_type

The encoding character type.

typedef unsigned char stlencoders::base32_traits< char >::int_type

An integral type representing an octet.

Member Function Documentation

static bool stlencoders::base32_traits< char >::eq ( const char_type lhs,
const char_type rhs 
)
inlinestatic

Returns whether the character lhs is to be treated equal to the character rhs.

static bool stlencoders::base32_traits< char >::eq_int_type ( const int_type lhs,
const int_type rhs 
)
inlinestatic

Returns whether the integral value lhs is to be treated equal to rhs.

static int_type stlencoders::base32_traits< char >::inv ( )
inlinestatic

Returns an integral value represented by no character in the encoding alphabet.

static char_type stlencoders::base32_traits< char >::pad ( )
inlinestatic

Returns the character used to perform padding at the end of a character range.

static char_type stlencoders::base32_traits< char >::to_char_type ( const int_type c)
inlinestatic

Returns the character representation of a 5-bit value.

static char_type stlencoders::base32_traits< char >::to_char_type_lower ( const int_type c)
inlinestatic

Returns the lowercase character representation of a 5-bit value.

static char_type stlencoders::base32_traits< char >::to_char_type_upper ( const int_type c)
inlinestatic

Returns the uppercase character representation of a 5-bit value.

static int_type stlencoders::base32_traits< char >::to_int_type ( const char_type c)
inlinestatic

Returns the 5-bit value represented by a character, or inv() for characters not in the encoding alphabet.