#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.
Referenced by get_history_event(), get_history_word_specifier(), normalize_codeset(), rl_digit_loop(), rl_digit_loop1(), and rl_vi_domove().
Definition at line 110 of file chardefs.h.
Referenced by get_history_event(), get_history_word_specifier(), rl_digit_loop1(), and rl_vi_domove().
| #define _rl_isident | ( | c | ) | (ISALNUM(c) || (c) == '_') |
Definition at line 114 of file chardefs.h.
Referenced by rl_vi_bword(), rl_vi_eword(), and rl_vi_fword().
| #define _rl_lowercase_p | ( | c | ) | (NON_NEGATIVE(c) && ISLOWER(c)) |
| #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.
Referenced by _rl_dispatch_subseq(), _rl_get_keyname(), _rl_untranslate_macro_value(), compute_lcd_of_matches(), normalize_codeset(), rl_change_case(), rl_filename_completion_function(), rl_invoking_keyseqs_in_map(), rl_untranslate_keyseq(), and rl_vi_change_case().
| #define _rl_to_upper | ( | c | ) | (_rl_lowercase_p(c) ? toupper((unsigned char)c) : (c)) |
Definition at line 105 of file chardefs.h.
Referenced by _rl_stricmp(), _rl_strnicmp(), rl_arrow_keys(), rl_change_case(), rl_parse_and_bind(), rl_translate_keyseq(), rl_vi_change_case(), rl_vi_change_to(), and rl_vi_domove().
| #define _rl_uppercase_p | ( | c | ) | (NON_NEGATIVE(c) && ISUPPER(c)) |
Definition at line 98 of file chardefs.h.
Referenced by rl_vi_change_case(), rl_vi_change_to(), rl_vi_delete_to(), rl_vi_end_word(), rl_vi_next_word(), rl_vi_prev_word(), rl_vi_put(), and rl_vi_yank_to().
| #define ABORT_CHAR CTRL('G') |
Definition at line 146 of file chardefs.h.
| #define ALPHABETIC | ( | c | ) | (NON_NEGATIVE(c) && ISALNUM(c)) |
| #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.
Referenced by _rl_get_keyname(), _rl_untranslate_macro_value(), fnprint(), fnwidth(), rl_character_len(), rl_invoking_keyseqs_in_map(), rl_redisplay(), rl_show_char(), and rl_untranslate_keyseq().
| #define ESC CTRL('[') |
Definition at line 161 of file chardefs.h.
Referenced by _rl_dispatch_subseq(), _rl_get_keyname(), _rl_macro_dumper_internal(), _rl_untranslate_macro_value(), rl_bind_key(), rl_function_of_keyseq(), rl_generic_bind(), rl_invoking_keyseqs_in_map(), rl_translate_keyseq(), rl_untranslate_keyseq(), and rl_vi_replace().
| #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.
Referenced by rl_translate_keyseq().
| #define IN_CTYPE_DOMAIN | ( | c | ) | 1 |
Definition at line 71 of file chardefs.h.
| #define ISALNUM | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isalnum (c)) |
| #define ISALPHA | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isalpha (c)) |
Definition at line 90 of file chardefs.h.
Referenced by normalize_codeset(), printable_part(), and rl_filename_completion_function().
| #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') |
| #define ISPRINT | ( | c | ) | (IN_CTYPE_DOMAIN (c) && isprint (c)) |
| #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)) |
| #define largest_char 255 |
| #define META | ( | c | ) | ((c) | meta_character_bit) |
| #define META_CHAR | ( | c | ) | ((c) > meta_character_threshold && (c) <= largest_char) |
Definition at line 62 of file chardefs.h.
Referenced by _rl_dispatch_subseq(), _rl_untranslate_macro_value(), rl_bind_key(), rl_character_len(), rl_function_of_keyseq(), rl_generic_bind(), rl_redisplay(), rl_show_char(), and rl_untranslate_keyseq().
| #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.
Referenced by add_option(), create_instance_in_file(), get_y_or_n(), modify_defaults_file(), noninc_search(), readline_internal_char(), rl_gather_tyi(), rl_stuff_char(), rl_translate_keyseq(), and rl_vi_replace().
| #define NON_NEGATIVE | ( | c | ) | ((unsigned char)(c) == (c)) |
Definition at line 83 of file chardefs.h.
| #define OCTVALUE | ( | c | ) | ((c) - '0') |
| #define PAGE CTRL('L') |
Definition at line 151 of file chardefs.h.
| #define RETURN CTRL('M') |
Definition at line 132 of file chardefs.h.
Referenced by get_y_or_n(), Dbtup::interpreterNextLab(), noninc_search(), NdbOperation::ret_sub(), rl_gather_tyi(), rl_translate_keyseq(), and rl_vi_replace().
| #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.
Referenced by _rl_dispatch_subseq(), _rl_untranslate_macro_value(), rl_bind_key(), rl_digit_loop(), rl_digit_loop1(), rl_function_of_keyseq(), rl_generic_bind(), rl_show_char(), and rl_untranslate_keyseq().
| #define whitespace | ( | c | ) | (((c) == ' ') || ((c) == '\t')) |
Definition at line 43 of file chardefs.h.
Referenced by _rl_read_init_file(), get_history_event(), handle_parser_directive(), history_expand_internal(), history_tokenize_internal(), parser_if(), quote_breaks(), rl_delete_horizontal_space(), rl_parse_and_bind(), rl_tilde_expand(), rl_unix_filename_rubout(), rl_unix_word_rubout(), rl_vi_back_to_indent(), rl_vi_bword(), rl_vi_bWord(), rl_vi_complete(), rl_vi_domove(), rl_vi_eword(), rl_vi_eWord(), rl_vi_fword(), rl_vi_fWord(), and sv_isrchterm().
1.4.7

