ctype.h 714 B

123456789101112131415161718192021
  1. extern const unsigned char *_uc_ctype_b;
  2. extern const unsigned char *_uc_ctype_trans;
  3. extern const unsigned char _uc_ctype_b_C[256+256];
  4. #define LOCALE_BUF_SIZE (sizeof(_uc_ctype_b_C))
  5. #define ISbit(bit) (1 << bit)
  6. enum
  7. {
  8. ISprint = ISbit (0), /* 1 Printable. */
  9. ISupper = ISbit (1), /* 2 UPPERCASE. */
  10. ISlower = ISbit (2), /* 4 lowercase. */
  11. IScntrl = ISbit (3), /* 8 Control character. */
  12. ISspace = ISbit (4), /* 16 Whitespace. */
  13. ISpunct = ISbit (5), /* 32 Punctuation. */
  14. ISalpha = ISbit (6), /* 64 Alphabetic. */
  15. ISxdigit = ISbit (7), /* 128 Hexnumeric. */
  16. };