19#ifndef MMGR_ASCII_PERSONA_BITORUM_H
20#define MMGR_ASCII_PERSONA_BITORUM_H
48EMBED_STATIC_ASSERT(
sizeof(
MmgrAsciiMask) == 16u,
"an ASCII class mask is exactly 128 bits");
static const AsciiPersonaBitorumNs ascii
Dispatch table instance named ascii, with each member set to its mmgr_ascii_ function.
EMBED_HOST_DEVICE embed_bool mmgr_ascii_in(const AsciiCfg *args)
Returns whether args->byte has its bit set in the type bitmap.
MmgrAsciiClass
Asserts an MmgrAsciiMask is exactly sixteen bytes.
EMBED_HOST_DEVICE uint8_t mmgr_ascii_lower(const AsciiCfg *args)
Returns args->byte with an upper case letter folded to its lower case, as tolower folds it.
EMBED_HOST_DEVICE uint8_t mmgr_ascii_upper(const AsciiCfg *args)
Returns args->byte with a lower case letter folded to its upper case, as toupper folds it.
The embedded_types headers every module builds on.
Arguments to mmgr_ascii_in: the class and the byte to test.
const MmgrAsciiClass type
Type of the ascii dispatch table.
embed_bool(*) in(const AsciiCfg *args)
uint8_t(*) upper(const AsciiCfg *args)
uint8_t(*) lower(const AsciiCfg *args)
Sixteen bytes with one bit for each of the code points 0 to 127.