std1.0.0-beta-7 SafeC docs

Module ctype

#include <std/ctype.h> source

Character classification and conversion (C89–C23) Functions are locale-aware (delegate to the current C locale). SafeC idiomatic names: char_is_(c) and char_to_(c).

Functions

char_is_alpha
char_is_digitIs c a decimal digit (0-9)?
char_is_alnumIs c a letter or decimal digit?
char_is_xdigitIs c a hexadecimal digit (0-9, a-f, A-F)?
char_is_spaceIs c a whitespace character (space, tab, newline, CR, FF, VT)?
char_is_blankIs c a blank character (space or horizontal tab only)?
char_is_printIs c a printable character (including space)?
char_is_graphIs c a printable character excluding space (has visible glyph)?
char_is_punctIs c a punctuation character (graphical but not alphanumeric)?
char_is_ctrlIs c a control character (value < 32 or == 127 in ASCII)?
char_is_upperIs c an uppercase letter?
char_is_lowerIs c a lowercase letter?
char_to_lowerReturn the lowercase version of c (unchanged if not uppercase).
char_to_upperReturn the uppercase version of c (unchanged if not lowercase).