MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
hex.h File Reference
#include <cassert>
#include <cstdint>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <type_traits>

Go to the source code of this file.

Classes

class  helper::string::DefaultHex
 
class  helper::string::CStringHex
 

Namespaces

namespace  helper
 
namespace  helper::string
 

Typedefs

using helper::string::HexConverter = bool(*)(const char c, uint8_t *out)
 

Functions

template<typename Container , typename Transform = DefaultHex>
std::string helper::string::hex (const Container &c)
 
bool helper::string::get_unhex_character (const char c, uint8_t *out)
 
bool helper::string::get_unhex_character_or_throw (const char c, uint8_t *out)
 
uint8_t helper::string::unhex_character (const char c)
 
template<HexConverter converter, typename IT1 , typename IT2 >
bool helper::string::get_hex_skip (IT1 &it, const IT2 &end, uint8_t *out)
 
template<typename Container , HexConverter converter = get_unhex_character_or_throw>
Container helper::string::unhex (const std::string &h)