Helper class implementing identifier encoding functionality. More...
#include <eagine/identifier.hpp>
Static Public Member Functions | |
static constexpr auto | encode (const char c) noexcept -> std::uint8_t |
Encoded the specified character as N-bit byte. | |
static constexpr auto | decode (const std::uint8_t i) noexcept -> char |
Encoded the specified N-bit byte as character. | |
static constexpr auto | invalid () noexcept |
Returns the invalid value from the encoding. | |
static constexpr auto | invalid (const std::uint8_t c) noexcept |
Indicates if the encoded value is invalid. | |
static auto | chars () -> string_view |
Returns the valid character set as a string_view. | |
Helper class implementing identifier encoding functionality.