You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
442 B

26 years ago
26 years ago
  1. /* character-class table */
  2. #define CCLASS_ALNUM 0
  3. #define CCLASS_ALPHA 1
  4. #define CCLASS_BLANK 2
  5. #define CCLASS_CNTRL 3
  6. #define CCLASS_DIGIT 4
  7. #define CCLASS_GRAPH 5
  8. #define CCLASS_LOWER 6
  9. #define CCLASS_PRINT 7
  10. #define CCLASS_PUNCT 8
  11. #define CCLASS_SPACE 9
  12. #define CCLASS_UPPER 10
  13. #define CCLASS_XDIGIT 11
  14. #define CCLASS_LAST 12
  15. extern struct cclass {
  16. const char *name;
  17. const char *chars;
  18. const char *multis;
  19. uint mask;
  20. } cclasses[];