chsvlib
chsv helper source code

◆ ucp_ispunct_ascii()

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

Returns a flag that indicates whether a given character is a punctuational character in the ASCII code space.

Parameters
chis the character to check.
Returns
A nonzero value, if ch is an ASCII punctuational character, i.e. one of the following: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~. Otherwise, the function returns a zero value.

The function repeats the standard library ispunct function.

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