ascii

group turbo_strings_ascii

Functions

constexpr bool ascii_is_alpha(unsigned char c)

Determines whether the given character is an alphabetic character.

constexpr bool ascii_is_alnum(unsigned char c)

Determines whether the given character is an alphanumeric character.

constexpr bool ascii_is_space(unsigned char c)

Determines whether the given character is a whitespace character (space, tab, vertical tab, formfeed, linefeed, or carriage return).

constexpr bool ascii_is_punct(unsigned char c)

Determines whether the given character is a punctuation character.

constexpr bool ascii_is_blank(unsigned char c)

Determines whether the given character is a blank character (tab or space).

constexpr bool ascii_is_cntrl(unsigned char c)

Determines whether the given character is a control character.

constexpr bool ascii_is_xdigit(unsigned char c)

Determines whether the given character can be represented as a hexadecimal digit character (i.e.

{0-9} or {A-F}).

constexpr bool ascii_is_digit(unsigned char c)

Determines whether the given character can be represented as a decimal digit character (i.e.

{0-9}).

constexpr bool ascii_is_print(unsigned char c)

Determines whether the given character is printable, including spaces.

constexpr bool ascii_is_graph(unsigned char c)

Determines whether the given character has a graphical representation.

constexpr bool ascii_is_upper(unsigned char c)

Determines whether the given character is uppercase.

constexpr bool ascii_is_lower(unsigned char c)

Determines whether the given character is lowercase.

constexpr bool ascii_is_ascii(unsigned char c)

Determines whether the given character is ASCII.

constexpr char ascii_to_lower(unsigned char c)

Returns the ASCII character, converting to lower-case if upper-case is passed.

Note that characters values > 127 are simply returned.

constexpr char ascii_to_upper(unsigned char c)

Returns the ASCII character, converting to upper-case if lower-case is passed.

Note that characters values > 127 are simply returned.

constexpr bool ascii_is_operator(char c) noexcept

Determines whether the given character is a comparison operator.

constexpr bool ascii_is_dot(char c) noexcept

Determines whether the given character is a .

.

constexpr bool ascii_is_logical_or(char c) noexcept

Determines whether the given character is a |.

constexpr bool ascii_is_logical_and(char c) noexcept

Determines whether the given character is a &.

constexpr bool ascii_is_logical_xor(char c) noexcept

Determines whether the given character is a ^.

constexpr bool ascii_is_logical_not(char c) noexcept

Determines whether the given character is a !.

constexpr bool ascii_is_hyphen(char c) noexcept

Determines whether the given character is a hyphen.

constexpr bool ascii_is_letter(char c) noexcept

Determines whether the given character is a letter.

constexpr std::uint16_t ascii_to_digit(char c) noexcept

Converts a character to a digit.