|
SeqAn3 3.4.0-rc.3
The Modern C++ library for sequence analysis.
|
Alphabet specific customisations for builtin char types. More...
#include <seqan3/alphabet/adaptation/char.hpp>
Static Public Member Functions | |
| static constexpr char_type & | assign_char_to (char_type const chr2, char_type &chr) noexcept |
Assign a char to the char type (same as calling =). | |
| static constexpr char_type & | assign_rank_to (decltype(alphabet::to_rank(char_type{})) const rank, char_type &chr) noexcept |
| Assigning a rank to a char is the same as assigning it a numeric value. | |
| static constexpr char_type | to_char (char_type const chr) noexcept |
| Converting char to char is no-op (it will just return the value you pass in). | |
| static constexpr auto | to_rank (char_type const chr) noexcept |
| Convert char to rank by casting to an unsigned integral type of same size. | |
Static Public Attributes | |
| static constexpr auto | alphabet_size |
The number of values the char type can take (e.g. 256 for char). | |
Alphabet specific customisations for builtin char types.
| char_type | One of char, char16_t, char32_t or wchar_t. |
|
inlinestaticconstexprnoexcept |
Assign a char to the char type (same as calling =).
| [in] | chr2 | The char value you wish to assign. |
| [in,out] | chr | The alphabet letter that you wish to assign to. |
|
inlinestaticconstexprnoexcept |
Assigning a rank to a char is the same as assigning it a numeric value.
| [in] | rank | The rank value you wish to assign. |
| [in,out] | chr | The alphabet letter that you wish to assign to. |
|
inlinestaticconstexprnoexcept |
Converting char to char is no-op (it will just return the value you pass in).
| [in] | chr | The alphabet letter that you wish to convert to char (no-op). |
chr.
|
inlinestaticconstexprnoexcept |
Convert char to rank by casting to an unsigned integral type of same size.
| [in] | chr | The alphabet letter that you wish to convert to rank. |
uint*_t).
|
staticconstexpr |
The number of values the char type can take (e.g. 256 for char).