Skip to content

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')true
isdigit('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(' ')true
isspace('\t')true
isspace('a')false