Char
isdigit
| Property | Details |
|---|---|
| Function | isdigit(value) |
| Description | Returns true if value is a digit (0-9), otherwise false. |
| Parameters | value (char) – The character to check. |
| Return Type | bool |
| Errors | Throws an exception if value is not a character. |
| Example | isdigit('5') → trueisdigit('a') → false |
isspace
| Property | Details |
|---|---|
| Function | isspace(value) |
| Description | Returns true if value is a whitespace character (e.g., space, tab, newline), otherwise false. |
| Parameters | value (char) – The character to check. |
| Return Type | bool |
| Errors | Throws an exception if value is not a character. |
| Example | isspace(' ') → trueisspace('\t') → trueisspace('a') → false |