HexUtils.h File Reference

This file contains several utilities functions for dealing with HEX strings. More...

#include <cstring>
#include <map>
#include <vector>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::core
 

Functions

char * te::core::Binary2Hex (const char *s, std::size_t size)
 Each char from the array of characters in binary format is converted into a pair of hex characters. The final string is NULL terminated. More...
 
void te::core::Binary2Hex (const char *s, std::size_t size, char *outBuff)
 Each char from the array of characters in binary format is converted into a pair of hex characters. The final string is NULL terminated. More...
 
void te::core::Char2Hex (unsigned char c, char *r)
 It converts the character to a hex representation. More...
 
unsigned char te::core::GetDecimalFromHexLCase (char hexValue)
 It returns the decimal value in a char from a given hex value (for example: 'a' => 10, '8' => 8). More...
 
unsigned char te::core::GetDecimalFromHexNotCS (unsigned char hexValue)
 It returns the decimal value in a char from a given hex value (for example: 'A' => 10, '8' => 8). More...
 
unsigned char te::core::GetDecimalFromHexUCase (char hexValue)
 It returns the decimal value in a char from a given hex value (for example: 'A' => 10, '8' => 8). More...
 
char * te::core::Hex2Binary (const char *hex)
 It converts each pair of hex characters from a NULL-terminated string of hex characters into a binary format. More...
 
void te::core::Hex2Binary (const char *hex, std::size_t hSize, char *outBuff)
 It converts each pair of hex characters from an input string of hex characters into a binary format. More...
 
char * te::core::Hex2Binary2 (const char *hex)
 It converts each pair of hex characters from a NULL-terminated string of hex characters into a binary format. More...
 
void te::core::Hex2Binary2 (const char *hex, std::size_t hSize, char *outBuff)
 It converts each pair of hex characters from an input string of hex characters into a binary format. More...
 
char te::core::Hex2Char (const char *hex)
 It converts the character from a hex representation to a byte. More...
 
unsigned char te::core::Hex2Char2 (const char *hex)
 It converts the character from a hex representation to a byte. More...
 

Detailed Description

This file contains several utilities functions for dealing with HEX strings.

Definition in file HexUtils.h.