MySQL 9.3.0
Source Code Documentation
helper::string Namespace Reference

Classes

class  CStringHex
 
class  DefaultHex
 

Typedefs

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

Functions

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

Typedef Documentation

◆ HexConverter

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

Function Documentation

◆ cstr() [1/2]

const char * helper::string::cstr ( const char *  str)
inline

◆ cstr() [2/2]

const char * helper::string::cstr ( const std::string &  str)
inline

◆ get_hex_skip()

template<HexConverter converter, typename IT1 , typename IT2 >
bool helper::string::get_hex_skip ( IT1 &  it,
const IT2 &  end,
uint8_t *  out 
)

◆ get_unhex_character()

bool helper::string::get_unhex_character ( const char  c,
uint8_t *  out 
)
inline

◆ get_unhex_character_or_throw()

bool helper::string::get_unhex_character_or_throw ( const char  c,
uint8_t *  out 
)
inline

◆ hex()

template<typename Container , typename Transform = DefaultHex>
std::string helper::string::hex ( const Container &  c)

◆ is_empty() [1/2]

bool helper::string::is_empty ( const char *  str)
inline

◆ is_empty() [2/2]

bool helper::string::is_empty ( const std::string &  str)
inline

◆ size() [1/2]

size_t helper::string::size ( const char *  str)
inline

◆ size() [2/2]

size_t helper::string::size ( const std::string &  str)
inline

◆ unhex()

template<typename Container , HexConverter converter = get_unhex_character_or_throw>
Container helper::string::unhex ( const std::string &  h)

◆ unhex_character()

uint8_t helper::string::unhex_character ( const char  c)
inline