|
template<std::size_t StringLength> |
constexpr | base_n_alphabet (char const (&str)[StringLength], bool case_insensitive=StringLength<=33, char padding_char='\0') noexcept |
| Construct an alphabet.
|
|
constexpr char | char_from_int (int8_t x) const noexcept |
| Get a character from an integer.
|
|
constexpr int8_t | int_from_char (char c) const noexcept |
|
|
long long | radix |
|
bool | case_insensitive |
|
char | padding_char |
|
std::array< int8_t, 256 > | int_from_char_table = {} |
|
std::array< char, 127 > | char_from_int_table = {} |
|
◆ base_n_alphabet()
constexpr v1::detail::base_n_alphabet::base_n_alphabet |
( |
char const (&) | str[StringLength], |
|
|
bool | case_insensitive = StringLength <= 33, |
|
|
char | padding_char = '\0' ) |
|
inlineconstexprnoexcept |
Construct an alphabet.
- Parameters
-
str | A null terminated string as a char array. |
case_insensitive | The alphabet is case insensitive for decoding. |
padding_char | The character used to complete the last block during encoding. |
◆ char_from_int()
constexpr char v1::detail::base_n_alphabet::char_from_int |
( |
int8_t | x | ) |
const |
|
inlineconstexprnoexcept |
Get a character from an integer.
The integer must be in range of 0 to modula (exclusive).
The documentation for this struct was generated from the following file: