4#ifndef GREM_CORE_FORMATS_BASE16_HPP
5#define GREM_CORE_FORMATS_BASE16_HPP
25 return (ch >=
'0' && ch <=
'9') || (ch >=
'A' && ch <=
'F') || (ch >=
'a' && ch <=
'f');
38 if (ch >=
'0' && ch <=
'9') {
41 if (ch >=
'A' && ch <=
'F') {
44 if (ch >=
'a' && ch <=
'f') {
Optional value type that holds either a value or no value.
Definition Optional.hpp:58
Definition aliases.hpp:11
String decode(StringView string)
Decode the original data from a lowercase or uppercase hexadecimal Base16 string.
String encodeLowercase(StringView data)
Encode arbitrary data into a lowercase hexadecimal Base16 string.
String encodeUppercase(StringView data)
Encode arbitrary data into an uppercase hexadecimal Base16 string.
constexpr Optional< int > getHexadecimalDigitValue(char ch) noexcept
Get the hexadecimal digit value of a Base16 character.
Definition base16.hpp:37
constexpr bool isHexadecimalDigit(char ch) noexcept
Check if a character value represents a valid hexadecimal Base16 character (ASCII values '0'-'9',...
Definition base16.hpp:24
StringBase< char, std::char_traits< char >, std::allocator< char > > String
Definition String.hpp:17
StringViewBase< char, std::char_traits< char > > StringView
Definition StringView.hpp:16