cclass.h 992 B

123456789101112131415161718192021222324252627282930
  1. /* character-class table */
  2. static const struct cclass {
  3. const unsigned char *name;
  4. const unsigned char *chars;
  5. const unsigned char *multis;
  6. } cclasses[] = {
  7. {"alnum", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ""},
  8. {"alpha", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
  9. ""},
  10. {"blank", " \t", ""},
  11. {"cntrl", "\007\b\t\n\v\f\r\1\2\3\4\5\6\16\17\20\21\22\23\24\
  12. \25\26\27\30\31\32\33\34\35\36\37\177", ""},
  13. {"digit", "0123456789", ""},
  14. {"graph", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\
  15. 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
  16. ""},
  17. {"lower", "abcdefghijklmnopqrstuvwxyz",
  18. ""},
  19. {"print", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\
  20. 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ",
  21. ""},
  22. {"punct", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
  23. ""},
  24. {"space", "\t\n\v\f\r ", ""},
  25. {"upper", "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  26. ""},
  27. {"xdigit", "0123456789ABCDEFabcdef",
  28. ""},
  29. {NULL, 0, ""}
  30. };