jaulib v1.3.6
Jau Support Library (C++, Java, ..)
|
Base Alphabet Specification providing the alphabet for encode() and decode(). More...
#include <base_codec.hpp>
Public Types | |
typedef int(* | code_point_func) (const char c) noexcept |
Public Member Functions | |
alphabet (std::string _name, int _base, std::string_view _symbols, char _padding64, code_point_func _cpf) noexcept | |
constexpr int | base () const noexcept |
The fixed base used for this alphabet. | |
constexpr int | code_point (const char c) const noexcept |
Returns the code-point of the given character or -1 if not element of this alphabet. | |
constexpr const std::string & | name () const noexcept |
Human readable name for this alphabet instance. | |
constexpr char | operator[] (size_t cp) const noexcept |
Retrieve the character at given code-point of this alphabet. | |
constexpr char | padding64 () const noexcept |
Padding symbol for base <= 64 and block encoding only. | |
constexpr const std::string_view & | symbols () const noexcept |
The string of symbols of this alphabet. | |
std::string | to_string () const noexcept |
Base Alphabet Specification providing the alphabet for encode() and decode().
Implementation delegates static code_point() function.
Definition at line 55 of file base_codec.hpp.
|
noexcept |
Definition at line 57 of file base_codec.hpp.
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Human readable name for this alphabet instance.
Definition at line 71 of file base_codec.hpp.
|
inlineconstexprnoexcept |
The fixed base used for this alphabet.
Definition at line 74 of file base_codec.hpp.
|
inlineconstexprnoexcept |
The string of symbols of this alphabet.
Definition at line 77 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Padding symbol for base <= 64 and block encoding only.
May return zero for no padding.
Definition at line 80 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Returns the code-point of the given character or -1 if not element of this alphabet.
Definition at line 83 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Retrieve the character at given code-point of this alphabet.
Definition at line 86 of file base_codec.hpp.
|
inlinenoexcept |