From a12156f0c4d93e521429a72d3eb0a109655fb219 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sun, 18 Mar 2001 22:19:32 +0000 Subject: Part of the ctype locale support. --- libc/misc/ctype/ctype.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libc/misc/ctype/ctype.h (limited to 'libc/misc/ctype/ctype.h') diff --git a/libc/misc/ctype/ctype.h b/libc/misc/ctype/ctype.h new file mode 100644 index 000000000..f9a34cb18 --- /dev/null +++ b/libc/misc/ctype/ctype.h @@ -0,0 +1,21 @@ +extern const unsigned char *_uc_ctype_b; +extern const unsigned char *_uc_ctype_trans; + +extern const unsigned char _uc_ctype_b_C[256+256]; + +#define LOCALE_BUF_SIZE (sizeof(_uc_ctype_b_C)) + +#define ISbit(bit) (1 << bit) + +enum +{ + ISprint = ISbit (0), /* 1 Printable. */ + ISupper = ISbit (1), /* 2 UPPERCASE. */ + ISlower = ISbit (2), /* 4 lowercase. */ + IScntrl = ISbit (3), /* 8 Control character. */ + ISspace = ISbit (4), /* 16 Whitespace. */ + ISpunct = ISbit (5), /* 32 Punctuation. */ + ISalpha = ISbit (6), /* 64 Alphabetic. */ + ISxdigit = ISbit (7), /* 128 Hexnumeric. */ +}; + -- cgit v1.2.3