chsvlib
chsv helper source code

◆ ucp_isxdigit_ascii()

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

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

Parameters
chis the character to check.
Returns
A nonzero value, if ch is an ASCII hexadecimal digit character, i.e. belongs to the range \(\left[\textrm{0x30}; \textrm{0x31}\right]\cup\left[\textrm{0x41}; \textrm{0x46}\right]\cup\left[\textrm{0x61}; \textrm{0x66}\right]\). Otherwise, the function returns a zero value.

The function repeats the standard library isxdigit function.

See also
ucp_isdigit_ascii Checks whether the character encodes a decimal digit.
ucp_isdigit Same, but checks the whole Unicode 11.0 code space except for surrogate pairs.