Arguments to character-handling functions shall be representable as an unsigned char
Arguments to character-handling functions shall be representable as an unsigned char.
You cannot use plain char variables as arguments to
character-handling functions declared in <cctype>, for
instance, isalpha() or isdigit(). On certain
platforms, plain char variables can have negative values that
cannot be represented as unsigned char or EOF, resulting in
undefined behavior.
The check raises a flag when you use a signed or plain char
variable with a negative value as argument to a character-handling function.
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Strings library |
| Category: Required, Automated |