Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
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. More... | |
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. More... | |
constexpr const std::string & | name () const noexcept |
Human readable name for this alphabet instance. More... | |
constexpr char | operator[] (size_t cp) const noexcept |
Retrieve the character at given code-point of this alphabet. More... | |
constexpr char | padding64 () const noexcept |
Padding symbol for base <= 64 and block encoding only. More... | |
constexpr const std::string_view & | symbols () const noexcept |
The string of symbols of this alphabet. More... | |
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 56 of file base_codec.hpp.
|
noexcept |
Definition at line 58 of file base_codec.hpp.
|
inlinenoexcept |
Definition at line 68 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Human readable name for this alphabet instance.
Definition at line 72 of file base_codec.hpp.
|
inlineconstexprnoexcept |
The fixed base used for this alphabet.
Definition at line 75 of file base_codec.hpp.
|
inlineconstexprnoexcept |
The string of symbols of this alphabet.
Definition at line 78 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Padding symbol for base <= 64 and block encoding only.
May return zero for no padding.
Definition at line 81 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 84 of file base_codec.hpp.
|
inlineconstexprnoexcept |
Retrieve the character at given code-point of this alphabet.
Definition at line 87 of file base_codec.hpp.
|
inlinenoexcept |