chsvlib
chsv helper source code

◆ ucp_isprint_ascii()

int Chusov::String::ucp_isprint_ascii ( ucp_t  ch)
noexcept

Returns a flag that indicates whether a given character is an ASCII code that can be displayed on a graphical output device, i.e. space or any alphanumeric or punctuational character.

Parameters
chis the character to check.
Returns
A nonzero value, if ch is an ASCII alphanumeric or punctuational character or space (0x20). Otherwise, zero is returned.

The function repeats the standard library isprint function.

See also
ucp_isprint Same, but checks the whole Unicode 11.0 code space except for surrogate pairs.