Tor 0.4.9.1-alpha-dev
|
Locale-independent character-type inspection (header) More...
Go to the source code of this file.
Macros | |
#define | DECLARE_CTYPE_FN(name) |
#define | TOR_TOLOWER(c) (TOR_TOLOWER_TABLE[(uint8_t)c]) |
#define | TOR_TOUPPER(c) (TOR_TOUPPER_TABLE[(uint8_t)c]) |
Functions | |
static int | hex_decode_digit (char c) |
Variables | |
const uint8_t | TOR_TOUPPER_TABLE [] |
const uint8_t | TOR_TOLOWER_TABLE [] |
Locale-independent character-type inspection (header)
Definition in file compat_ctype.h.
#define DECLARE_CTYPE_FN | ( | name | ) |
Definition at line 19 of file compat_ctype.h.
#define TOR_TOLOWER | ( | c | ) | (TOR_TOLOWER_TABLE[(uint8_t)c]) |
Definition at line 36 of file compat_ctype.h.
#define TOR_TOUPPER | ( | c | ) | (TOR_TOUPPER_TABLE[(uint8_t)c]) |
Definition at line 37 of file compat_ctype.h.
|
inlinestatic |
Helper: given a hex digit, return its value, or -1 if it isn't hex.
Definition at line 43 of file compat_ctype.h.
Referenced by base16_decode(), and tor_addr_parse_PTR_name().
|
extern |
Definition at line 55 of file compat_ctype.c.
|
extern |
Upper-casing and lowercasing tables to map characters to upper/lowercase equivalents. Used by tor_toupper() and tor_tolower().
Definition at line 37 of file compat_ctype.c.