Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Types | Public Member Functions | Static Public Attributes | List of all members
jau::lang::alphabet Class Reference

Base Alphabet Specification providing the alphabet for token_fsm. More...

#include <token_fsm.hpp>

Inheritance diagram for jau::lang::alphabet:
Collaboration diagram for jau::lang::alphabet:

Public Types

typedef code_point_t(* code_point_func) (const char c) noexcept
 
typedef uint16_t code_point_t
 Unsigned int symbol for alphabet code-point type. More...
 

Public Member Functions

 alphabet (std::string _name, code_point_t _base, code_point_func _cpf) noexcept
 
constexpr code_point_t base () const noexcept
 The fixed base used for this alphabet, i.e. More...
 
constexpr code_point_t code_point (const char c) const noexcept
 Returns the token of the given character or code_error if not element of this alphabet. More...
 
constexpr const std::string & name () const noexcept
 Human readable name for this alphabet instance. More...
 
std::string to_string () const noexcept
 

Static Public Attributes

static constexpr const code_point_t code_error = std::numeric_limits<code_point_t>::max()
 token_error value, denoting an invalid alphabet code-point. More...
 

Detailed Description

Base Alphabet Specification providing the alphabet for token_fsm.

Implementation delegates static code_point() function.

See also
token_fsm()

Definition at line 74 of file token_fsm.hpp.


The documentation for this class was generated from the following file: