Luanti 5.16.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 (std::string_view data)
static std::string hex_encode (const char *data, size_t data_size)
static bool hex_digit_decode (char hexdigit, unsigned char &value)

Variables

static const char hex_chars [] = "0123456789abcdef"

Function Documentation

◆ hex_digit_decode()

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]

std::string hex_encode ( const char * data,
size_t data_size )
inlinestaticnodiscard

References hex_encode().

Here is the call graph for this function:

◆ hex_encode() [2/2]

Variable Documentation

◆ hex_chars

const char hex_chars[] = "0123456789abcdef"
static

Referenced by hex_encode(), and serializeJsonString().