|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Character handling. More...
Go to the source code of this file.
Data Structures | |
| struct | reduct_char_info_t |
Macros | |
| #define | REDUCT_CHAR_FLAGS(_c) (reductCharTable[(unsigned char)(_c)].flags) |
| Get the character flags for a given character. | |
| #define | REDUCT_CHAR_TO_LOWER(_c) (reductCharTable[(unsigned char)(_c)].lower) |
| Get the lowercase equivalent of a character. | |
| #define | REDUCT_CHAR_TO_UPPER(_c) (reductCharTable[(unsigned char)(_c)].upper) |
| Get the uppercase equivalent of a character. | |
| #define | REDUCT_CHAR_IS_WHITESPACE(_c) (REDUCT_CHAR_FLAGS(_c) & REDUCT_CHAR_WHITESPACE) |
| Check if a character is whitespace. | |
| #define | REDUCT_CHAR_IS_LETTER(_c) (REDUCT_CHAR_FLAGS(_c) & REDUCT_CHAR_LETTER) |
| Check if a character is a letter. | |
| #define | REDUCT_CHAR_IS_DIGIT(_c) (REDUCT_CHAR_FLAGS(_c) & REDUCT_CHAR_DIGIT) |
| Check if a character is a decimal digit. | |
| #define | REDUCT_CHAR_IS_SYMBOL(_c) (REDUCT_CHAR_FLAGS(_c) & REDUCT_CHAR_SYMBOL) |
| Check if a character is a symbol. | |
| #define | REDUCT_CHAR_IS_HEX_DIGIT(_c) (REDUCT_CHAR_FLAGS(_c) & REDUCT_CHAR_HEX_DIGIT) |
| Check if a character is a hexidecimal digit. | |
Enumerations | |
| enum | reduct_char_flags_t { REDUCT_CHAR_LETTER = (1 << 0) , REDUCT_CHAR_DIGIT = (1 << 1) , REDUCT_CHAR_SYMBOL = (1 << 2) , REDUCT_CHAR_WHITESPACE = (1 << 3) , REDUCT_CHAR_HEX_DIGIT = (1 << 4) } |
| Character classification flags. More... | |
Variables | |
| reduct_char_info_t | reductCharTable [256] |
| Global character lookup table. | |
Character handling.
Definition in file char.h.