#include <ctype.h>#include <string.h>Include dependency graph for chardefs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | whitespace(c) (((c) == ' ') || ((c) == '\t')) |
| #define | control_character_threshold 0x020 |
| #define | control_character_mask 0x1f |
| #define | meta_character_threshold 0x07f |
| #define | control_character_bit 0x40 |
| #define | meta_character_bit 0x080 |
| #define | largest_char 255 |
| #define | CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0)) |
| #define | META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char) |
| #define | CTRL(c) ((c) & control_character_mask) |
| #define | META(c) ((c) | meta_character_bit) |
| #define | UNMETA(c) ((c) & (~meta_character_bit)) |
| #define | UNCTRL(c) _rl_to_upper(((c)|control_character_bit)) |
| #define | IN_CTYPE_DOMAIN(c) 1 |
| #define | isxdigit(c) (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F')) |
| #define | NON_NEGATIVE(c) ((unsigned char)(c) == (c)) |
| #define | ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) |
| #define | ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) |
| #define | ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) |
| #define | ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c)) |
| #define | ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) |
| #define | ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) |
| #define | ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c)) |
| #define | _rl_lowercase_p(c) (NON_NEGATIVE(c) && ISLOWER(c)) |
| #define | _rl_uppercase_p(c) (NON_NEGATIVE(c) && ISUPPER(c)) |
| #define | _rl_digit_p(c) ((c) >= '0' && (c) <= '9') |
| #define | _rl_pure_alphabetic(c) (NON_NEGATIVE(c) && ISALPHA(c)) |
| #define | ALPHABETIC(c) (NON_NEGATIVE(c) && ISALNUM(c)) |
| #define | _rl_to_upper(c) (_rl_lowercase_p(c) ? toupper((unsigned char)c) : (c)) |
| #define | _rl_to_lower(c) (_rl_uppercase_p(c) ? tolower((unsigned char)c) : (c)) |
| #define | _rl_digit_value(x) ((x) - '0') |
| #define | _rl_isident(c) (ISALNUM(c) || (c) == '_') |
| #define | ISOCTAL(c) ((c) >= '0' && (c) <= '7') |
| #define | OCTVALUE(c) ((c) - '0') |
| #define | HEXVALUE(c) |
| #define | NEWLINE '\n' |
| #define | RETURN CTRL('M') |
| #define | RUBOUT 0x7f |
| #define | TAB '\t' |
| #define | ABORT_CHAR CTRL('G') |
| #define | PAGE CTRL('L') |
| #define | SPACE ' ' |
| #define | ESC CTRL('[') |
| #define _rl_digit_p | ( | c | ) | ((c) >= '0' && (c) <= '9') |
Definition at line 99 of file chardefs.h.
Definition at line 110 of file chardefs.h.
| #define _rl_isident | ( | c | ) | (ISALNUM(c) || (c) == '_') |
Definition at line 114 of file chardefs.h.
| #define _rl_lowercase_p | ( | c | ) | (NON_NEGATIVE(c) && ISLOWER(c)) |
Definition at line 97 of file chardefs.h.
| #define _rl_pure_alphabetic | ( | c | ) | (NON_NEGATIVE(c) && ISALPHA(c)) |
Definition at line 101 of file chardefs.h.
| #define _rl_to_lower | ( | c | ) | (_rl_uppercase_p(c) ? tolower((unsigned char)c) : (c)) |
Definition at line 106 of file chardefs.h.
| #define _rl_to_upper | ( | c | ) | (_rl_lowercase_p(c) ? toupper((unsigned char)c) : (c)) |
Definition at line 105 of file chardefs.h.
| #define _rl_uppercase_p | ( | c | ) | (NON_NEGATIVE(c) && ISUPPER(c)) |
Definition at line 98 of file chardefs.h.
| #define ABORT_CHAR CTRL('G') |
Definition at line 146 of file chardefs.h.
| #define ALPHABETIC | ( | c | ) | (NON_NEGATIVE(c) && ISALNUM(c)) |
Definition at line 102 of file chardefs.h.
| #define control_character_bit 0x40 |
Definition at line 57 of file chardefs.h.
| #define control_character_mask 0x1f |
Definition at line 55 of file chardefs.h.
| #define control_character_threshold 0x020 |
Definition at line 54 of file chardefs.h.
| #define CTRL | ( | c | ) | ((c) & control_character_mask) |
Definition at line 64 of file chardefs.h.
| #define CTRL_CHAR | ( | c | ) | ((c) < control_character_threshold && (((c) & 0x80) == 0)) |
Definition at line 61 of file chardefs.h.
| #define ESC CTRL('[') |
Definition at line 161 of file chardefs.h.
| #define HEXVALUE | ( | c | ) |
Value:
(((c) >= 'a' && (c) <= 'f') \ ? (c)-'a'+10 \ : (c) >= 'A' && (c) <= 'F' ? (c)-'A'+10 : (c)-'0')
Definition at line 122 of file chardefs.h.
| #define IN_CTYPE_DOMAIN | ( | c | ) | 1 |
Definition at line 71 of file chardefs.h.
| #define ISALNUM | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isalnum (c)) |
Definition at line 89 of file chardefs.h.
| #define ISALPHA | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isalpha (c)) |
Definition at line 90 of file chardefs.h.
| #define ISDIGIT | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isdigit (c)) |
Definition at line 91 of file chardefs.h.
| #define ISLOWER | ( | c | ) | (IN_CTYPE_DOMAIN (c) && islower (c)) |
Definition at line 92 of file chardefs.h.
| #define ISOCTAL | ( | c | ) | ((c) >= '0' && (c) <= '7') |
Definition at line 118 of file chardefs.h.
| #define ISPRINT | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isprint (c)) |
Definition at line 93 of file chardefs.h.
| #define ISUPPER | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isupper (c)) |
Definition at line 94 of file chardefs.h.
| #define ISXDIGIT | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isxdigit (c)) |
Definition at line 95 of file chardefs.h.
Definition at line 77 of file chardefs.h.
| #define largest_char 255 |
Definition at line 59 of file chardefs.h.
| #define META | ( | c | ) | ((c) | meta_character_bit) |
Definition at line 65 of file chardefs.h.
| #define META_CHAR | ( | c | ) | ((c) > meta_character_threshold && (c) <= largest_char) |
Definition at line 62 of file chardefs.h.
| #define meta_character_bit 0x080 |
Definition at line 58 of file chardefs.h.
| #define meta_character_threshold 0x07f |
Definition at line 56 of file chardefs.h.
| #define NEWLINE '\n' |
Definition at line 128 of file chardefs.h.
| #define NON_NEGATIVE | ( | c | ) | ((unsigned char)(c) == (c)) |
Definition at line 83 of file chardefs.h.
| #define OCTVALUE | ( | c | ) | ((c) - '0') |
Definition at line 120 of file chardefs.h.
| #define PAGE CTRL('L') |
Definition at line 151 of file chardefs.h.
| #define RETURN CTRL('M') |
Definition at line 132 of file chardefs.h.
| #define RUBOUT 0x7f |
Definition at line 136 of file chardefs.h.
| #define SPACE ' ' |
Definition at line 156 of file chardefs.h.
| #define TAB '\t' |
Definition at line 140 of file chardefs.h.
| #define UNCTRL | ( | c | ) | _rl_to_upper(((c)|control_character_bit)) |
Definition at line 68 of file chardefs.h.
| #define UNMETA | ( | c | ) | ((c) & (~meta_character_bit)) |
Definition at line 67 of file chardefs.h.
| #define whitespace | ( | c | ) | (((c) == ' ') || ((c) == '\t')) |
Definition at line 43 of file chardefs.h.
1.4.7

