Tor
0.4.7.0-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.
|
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 |
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.