Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
hex.h File Reference
#include <string>
#include <string_view>
+ Include dependency graph for hex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static std::string hex_encode (const char *data, unsigned int data_size)
 
static std::string hex_encode (std::string_view data)
 
static bool hex_digit_decode (char hexdigit, unsigned char &value)
 

Variables

static const char hex_chars [] = "0123456789abcdef"
 

Function Documentation

◆ hex_digit_decode()

static bool hex_digit_decode ( char hexdigit,
unsigned char & value )
inlinestatic

Referenced by deSerializeJsonString(), parseHexColorString(), parseNamedColorString(), Translations::unescapeC(), and urldecode().

+ Here is the caller graph for this function:

◆ hex_encode() [1/2]

◆ hex_encode() [2/2]

static std::string hex_encode ( std::string_view data)
inlinestatic

References hex_encode().

+ Here is the call graph for this function:

Variable Documentation

◆ hex_chars

const char hex_chars[] = "0123456789abcdef"
static

Referenced by hex_encode(), and serializeJsonString().