Honeycomb  0.1
Component-Model Framework
Namespaces | Functions
Encode.h File Reference
#include "Honey/String/Stream.h"
#include "Honey/Misc/MtMap.h"
Include dependency graph for Encode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 honey
 Global Honeycomb namespace.
 
 honey::encode
 Bytes to string encodings.
 

Functions

bool honey::encode::reg (const Id &id, const function< ostream &(ostream &os, const Bytes &val)> &encode, const function< istream &(istream &os, Bytes &val)> &decode)
 Register an encoding. More...
 
bool honey::encode::isHex (Char c)
 Check if character is in hexadecimal charset (numeric and case-insensitive [a-f]) More...
 
Char honey::encode::toHex (byte b)
 Convert byte to hexadecimal character. More...
 
byte honey::encode::fromHex (Char c)
 Convert hexadecimal character to byte. More...
 
String honey::encode::hex_encode (ByteBufConst bs)
 Convert bytes to string using hexadecimal encoding (high-nibble-first) More...
 
Bytes honey::encode::hex_decode (const String &string)
 Convert string to bytes using hexadecimal decoding (high-nibble-first) More...
 
ostream & honey::encode::hex (ostream &os)
 Use hexadecimal encoding (high-nibble-first) when writing bytes to a string stream. More...
 
istream & honey::encode::hex (istream &is)
 Use hexadecimal decoding (high-nibble-first) when reading bytes from a string stream. More...
 
bool honey::encode::isDec (Char c)
 Check if character is in decimal charset (numeric) More...
 
Char honey::encode::toDec (byte b)
 Convert byte to decimal character. More...
 
byte honey::encode::fromDec (Char c)
 Convert decimal character to byte. More...
 
String honey::encode::dec_encode (ByteBufConst bs)
 Convert bytes to string using decimal encoding (big-endian integer) More...
 
Bytes honey::encode::dec_decode (const String &string)
 Convert string to bytes using decimal decoding (big-endian integer) More...
 
ostream & honey::encode::dec (ostream &os)
 Use decimal encoding (big-endian integer) when writing bytes to a string stream. More...
 
istream & honey::encode::dec (istream &is)
 Use decimal decoding (big-endian integer) when reading bytes from a string stream. More...
 
ostream & honey::encode::u8 (ostream &os)
 Use UTF-8 encoding when writing bytes to a string stream. More...
 
istream & honey::encode::u8 (istream &is)
 Use UTF-8 decoding when reading bytes from a string stream. More...
 
bool honey::encode::isBase32 (Char c)
 Check if character is in base32 charset (case-insensitive [a-z], numeric [2-7], and padding '=') More...
 
Char honey::encode::toBase32 (byte b)
 Convert byte to base32 character. More...
 
byte honey::encode::fromBase32 (Char c)
 Convert base32 character to byte. More...
 
String honey::encode::base32_encode (ByteBufConst bs)
 Convert bytes to string using base32 encoding. More...
 
Bytes honey::encode::base32_decode (const String &string)
 Convert string to bytes using base32 decoding. More...
 
ostream & honey::encode::base32 (ostream &os)
 Use base32 encoding when writing bytes to a string stream. More...
 
istream & honey::encode::base32 (istream &is)
 Use base32 decoding when reading bytes from a string stream. More...
 
bool honey::encode::isBase64 (Char c)
 Check if character is in base64 charset (alphanumeric, symbols [+/], and padding '=') More...
 
Char honey::encode::toBase64 (byte b)
 Convert byte to base64 character. More...
 
byte honey::encode::fromBase64 (Char c)
 Convert base64 character to byte. More...
 
String honey::encode::base64_encode (ByteBufConst bs)
 Convert bytes to string using base64 encoding. More...
 
Bytes honey::encode::base64_decode (const String &string)
 Convert string to bytes using base64 decoding. More...
 
ostream & honey::encode::base64 (ostream &os)
 Use base64 encoding when writing bytes to a string stream. More...
 
istream & honey::encode::base64 (istream &is)
 Use base64 decoding when reading bytes from a string stream. More...