|
noexcept |
Returns a flag that indicates whether a given character is a control code in the Unicode code space.
ch | is the character to check. |
ch
is an ASCII control character, as defined for ucp_iscntrl_ascii, or, if ch
is not an ASCII character and belongs to the "Other, Control" general category. Otherwise, the function returns 0.The function firstly checks if ch
belongs to the ASCII code space. If it does, the function returns the result of a call to ucp_iscntrl_ascii. Otherwise, if ch
is not an ASCII character the function checks if ch
belongs to any of the respective Unicode general category.
The function does not take Unicode surrogate pairs into account and simply returns 0, if ch
appertains the range \(\left[\textrm{0xd800}; \textrm{0xf8ff}\right]\). The function also returns 0, if ch
does not belong to the range of valid Unicode code points.