Tor
0.4.7.0-alpha-dev
|
Locale-independent character-type inspection (backend) More...
#include "lib/string/compat_ctype.h"
Go to the source code of this file.
Variables | |
const uint32_t | TOR_ISALPHA_TABLE [8] |
const uint32_t | TOR_ISALNUM_TABLE [8] |
const uint32_t | TOR_ISSPACE_TABLE [8] = { 0x3e00, 0x1, 0, 0, 0, 0, 0, 0 } |
const uint32_t | TOR_ISXDIGIT_TABLE [8] |
const uint32_t | TOR_ISDIGIT_TABLE [8] = { 0, 0x3ff0000, 0, 0, 0, 0, 0, 0 } |
const uint32_t | TOR_ISPRINT_TABLE [8] |
const uint32_t | TOR_ISUPPER_TABLE [8] = { 0, 0, 0x7fffffe, 0, 0, 0, 0, 0 } |
const uint32_t | TOR_ISLOWER_TABLE [8] = { 0, 0, 0, 0x7fffffe, 0, 0, 0, 0 } |
const uint8_t | TOR_TOUPPER_TABLE [256] |
const uint8_t | TOR_TOLOWER_TABLE [256] |
Locale-independent character-type inspection (backend)
Definition in file compat_ctype.c.
const uint32_t TOR_ISALNUM_TABLE[8] |
Definition at line 22 of file compat_ctype.c.
const uint32_t TOR_ISALPHA_TABLE[8] |
Tables to implement ctypes-replacement TOR_IS*() functions. Each table has 256 bits to look up whether a character is in some set or not. This fails on non-ASCII platforms, but it is hard to find a platform whose character set is not a superset of ASCII nowadays.
Definition at line 20 of file compat_ctype.c.
const uint32_t TOR_ISPRINT_TABLE[8] |
Definition at line 28 of file compat_ctype.c.
const uint32_t TOR_ISXDIGIT_TABLE[8] |
Definition at line 25 of file compat_ctype.c.
const uint8_t TOR_TOLOWER_TABLE[256] |
Definition at line 55 of file compat_ctype.c.
const uint8_t TOR_TOUPPER_TABLE[256] |
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.