|
stlencoders
1.1.3
|
C++ namespace used for the stlencoders public API. More...
Classes | |
| struct | base16_traits |
| base16 character encoding traits class template. More... | |
| struct | base16_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base16_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| class | base16 |
| This class template implements the Base16 encoding as defined in RFC 4648 for a given character type and encoding alphabet. More... | |
| struct | base2_traits |
| base2 character encoding traits class template. More... | |
| struct | base2_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base2_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| class | base2 |
| This class template implements the standard Base2, or binary, encoding. More... | |
| struct | base32_traits |
| base32 character encoding traits class template. More... | |
| struct | base32_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base32_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| struct | base32hex_traits |
| base32hex character encoding traits class template. More... | |
| struct | base32hex_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base32hex_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| class | base32 |
| This class template implements the Base32 encoding as defined in RFC 4648 for a given character type and encoding alphabet. More... | |
| struct | base64_traits |
| base64 character encoding traits class template. More... | |
| struct | base64_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base64_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| struct | base64url_traits |
| base64hex character encoding traits class template. More... | |
| struct | base64url_traits< char > |
Character encoding traits specialization for char. More... | |
| struct | base64url_traits< wchar_t > |
Character encoding traits specialization for wchar_t. More... | |
| class | base64 |
| This class template implements the Base64 encoding as defined in RFC 4648 for a given character type and encoding alphabet. More... | |
| class | decode_error |
| Exception class thrown to report an unspecified error in a decode operation. More... | |
| class | invalid_character |
| Exception class thrown to report an invalid character. More... | |
| class | invalid_length |
| Exception class thrown to report an invalid length of a character sequence. More... | |
| class | line_wrap_iterator |
| An output iterator adaptor used to wrap lines after a set number of characters. More... | |
| struct | portable_wchar_encoding_traits |
A character encoding traits adaptor that converts an underlying encoding traits class for type char to type wchar_t. More... | |
| struct | lower_char_encoding_traits |
| A character encoding traits adaptor that uses the lowercase alphabet of an underlying encoding traits class. More... | |
| struct | upper_char_encoding_traits |
| A character encoding traits adaptor that uses the uppercase alphabet of an underlying encoding traits class. More... | |
Functions | |
| template<class Iterator , class charT , class sizeT > | |
| line_wrap_iterator< Iterator, charT > | line_wrapper (Iterator i, sizeT n, const charT *s) |
| Creates a line_wrap_iterator adaptor which will copy a delimiter string to a given iterator after every n characters. More... | |
| template<template< char > class LUT, class T > | |
| const T & | lookup (char c) |
| Maps a character to its corresponding value in a lookup table. More... | |
C++ namespace used for the stlencoders public API.
|
inline |
Creates a line_wrap_iterator adaptor which will copy a delimiter string to a given iterator after every n characters.
| Iterator | the underlying iterator class |
| charT | the output character type |
| sizeT | an integral type |
| i | the underlying iterator |
| n | the number of characters per line |
| s | the line delimiter string |
line_wrap_iterator
|
inline |
Maps a character to its corresponding value in a lookup table.
The lookup table is statically initialized from the class template LUT, which is parameterized by a non-type argument of type char, and shall provide a constant expression LUT<c>::value implicitly convertible to type T for each character c.
To create a lookup table that maps the characters '0' and '1' to their corresponding integral values, and any other character to -1, a class template may be defined as:
| LUT | the class template defining the lookup table |
| T | the lookup table's value type |
| c | the character to map |
LUT<c>::value char is more than eight bits wide. For characters whose unsigned representation is outside this range, LUT<'\0'>::value is returned.
1.8.4