GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
base16.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  grem
namespace  grem::base16

Functions

constexpr bool grem::base16::isHexadecimalDigit (char ch) noexcept
 Check if a character value represents a valid hexadecimal Base16 character (ASCII values '0'-'9', 'A'-'F' or 'a'-'f').
constexpr Optional< int > grem::base16::getHexadecimalDigitValue (char ch) noexcept
 Get the hexadecimal digit value of a Base16 character.
String grem::base16::encodeLowercase (StringView data)
 Encode arbitrary data into a lowercase hexadecimal Base16 string.
String grem::base16::encodeUppercase (StringView data)
 Encode arbitrary data into an uppercase hexadecimal Base16 string.
String grem::base16::decode (StringView string)
 Decode the original data from a lowercase or uppercase hexadecimal Base16 string.