Character Type Library
1.10.1¶
#include <std/ctype.pat>
Functions¶
std::ctype::isdigit(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII digit
Parameter |
Description |
---|---|
|
Character |
|
True if character is a decimal ASCII digit ( |
std::ctype::isxdigit(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a hexadecimal ASCII digit
Parameter |
Description |
---|---|
|
Character |
|
True if character is a hexadecimal ASCII digit ( |
std::ctype::isupper(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a uppercase ASCII letter
Parameter |
Description |
---|---|
|
Character |
|
True if character is a uppercase ASCII letter ( |
std::ctype::islower(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a lowercase ASCII letter
Parameter |
Description |
---|---|
|
Character |
|
True if character is a lowercase ASCII letter ( |
std::ctype::isalpha(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII letter
Parameter |
Description |
---|---|
|
Character |
|
True if character is a ASCII letter ( |
std::ctype::isalnum(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII letter or digit
Parameter |
Description |
---|---|
|
Character |
|
True if character is a ASCII letter or digit ( |
std::ctype::isspace(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII whitespace character
Parameter |
Description |
---|---|
|
Character |
|
True if character is a ASCII whitespace character (0x20, 0x09, 0x0A, 0x0B, 0x0C or 0x0D) |
std::ctype::isblank(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a blank ASCII character
Parameter |
Description |
---|---|
|
Character |
|
True if character is a blank ASCII character (Space or Tab) |
std::ctype::isprint(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a printable ASCII character
Parameter |
Description |
---|---|
|
Character |
|
True if character has a printable symbol (all non-control characters) |
std::ctype::iscntrl(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII control character
Parameter |
Description |
---|---|
|
Character |
|
True if character is a control character |
std::ctype::isgraph(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII character with a graphical representation
Parameter |
Description |
---|---|
|
Character |
|
True if character has a printable symbol (all printable characters except space characters) |
std::ctype::ispunct(char c) -> bool
1.10.1¶
Checks if the character parameter “c” is a ASCII punctuation character
Parameter |
Description |
---|---|
|
Character |
|
True if character is a ASCII punctuation character (one of |