#include <rtchar.h>
Static Public Methods | |
| bool | isSpace (char ch) |
| Detects if a character is whitespace. More... | |
| bool | isUpperCase (char ch) |
| Detects if a character is an upper-case letter. | |
| bool | isLowerCase (char ch) |
| Detects if a character is a lower-case letter. | |
| bool | isDigit (char ch) |
| Detects if a character is a digit for decimal numbers. | |
| bool | isDigit (char ch, int radix) |
Detects if a character is a digit for numbers represented with radix radix. | |
| bool | isLetter (char ch) |
| Detects if a character is a letter. More... | |
| char | lowerCase (char ch) |
| Returns the lower-case equivalent of a character, if it is an upper-case letter. More... | |
| char | upperCase (char ch) |
| Returns the upper-case equivalent of a character, if it is a lower-case letter. More... | |
| int | numericValue (char ch) |
| Returns the numeric value of a character. More... | |
| char | charValue (int num) |
| Returns the character representing the given number. More... | |
Static Public Attributes | |
| const int | MAX_RADIX = 36 |
| The maximum radix supported for integer <-> String conversions. More... | |
Note that in libRT, every character is supposed to have the Latin-1 charset.
|
|
Returns the character representing the given number. Note that the given number is not positive and smaller than MAX_RADIX, results are undefined. |
|
|
Detects if a character is a letter.
This function is equivalent to |
|
|
Detects if a character is whitespace. Every spacing and control character is defined as whitespace. |
|
|
Returns the lower-case equivalent of a character, if it is an upper-case letter. If the given character is not uppercase, it is left unchanged. |
|
|
Returns the numeric value of a character. The returned value is in range 0..MAX_RADIX, if the character is an English letter or digit. If the character is not numerically representable, results are undefined. |
|
|
Returns the upper-case equivalent of a character, if it is a lower-case letter. If the given character is not lowercase, it is left unchanged. |
|
|
The maximum radix supported for integer <-> String conversions. (36) |