Rudiments
|
#include <character.h>
The character class provides static methods for evaluating and manipulating ASCII characters.
|
static |
Converts "c" to a 7-bit value by clearing the higher order bits.
Returns the character representation of wide character "c" per the character set of the current locale.
Returns '?' if wide character "c" cannot be converted to a character.
Returns the character representation of wide character "c" per the character set of the current locale.
Returns "replacement" if wide character "c" cannot be converted to a character.
Returns the character representation of UCS-2 character "c" per the character set of the current locale.
"c" is presumed to be in the byte-order of the system.
Returns '?' if UCS-2 character "c" cannot be converted to a character.
Returns the character representation of UCS-2 character "c" per the character set of the current locale.
If "bigendian" is true then "c" is presumed to be big endian. If "bigendian" is false, then "c" is presumed to be little endian.
Returns '?' if UCS-2 character "c" cannot be converted to a character.
Returns the character representation of UCS-2 character "c" per the character set of the current locale.
"c" is presumed to be in the byte-order of the system.
Returns "replacement" if UCS-2 character "c" cannot be converted to a character.
Returns the character representation of UCS-2 character "c" per the character set of the current locale.
If "bigendian" is true then "c" is presumed to be big endian. If "bigendian" is false, then "c" is presumed to be little endian.
Returns "replacement" if UCS-2 character "c" cannot be converted to a character.
|
static |
Returns the number of bytes needed to NULL-terminate a string of ASCII-encoded characters.
Returns true if "c" is alphabetical character and false otherwise.
Returns true if "c" is alphabetical character, including accented alphabetical characters from the IBM PC Extended ASCII character set (Code page 437), and false otherwise.
Returns true if "c" is an alphanumeric character and false otherwise.
Returns true if "c" is one of the values in the ASCII character set or false otherwise.
Returns true if "c" is a space or tab and false otherwise.
Returns true if "c" is a control character and false otherwise.
Returns true if "c" is a digit and false otherwise.
Returns true if "c" is a hexadecimal digit and false otherwise.
Returns true if "c" is in the set of characters in "set" and false otherwise.
Returns true if "c" is in the set of characters in "set" (ignoring case) and false otherwise.
Returns true if "c" is lower case and false otherwise.
Returns true if "c" is lower case, including accented alphabetical characters from the IBM PC Extended ASCII character set (Code page 437), and false otherwise.
Returns true if "c" is a printable character and false otherwise.
Returns true if "c" is a printable character other than a space and false otherwise.
Returns true if "c" is a printable character that is not a space or alphanumeric character and false otherwise.
Returns true if "c" is upper case and false otherwise.
Returns true if "c" is upper case, including accented alphabetical characters from the IBM PC Extended ASCII character set (Code page 437), and false otherwise.
Returns true if "c" is any whitespace character and false otherwise.
|
static |
Returns the lower case version of "c".
|
static |
Returns the upper case version of "c".