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.

30 lines
941 B

27 years ago
27 years ago
27 years ago
27 years ago
  1. /* character-class table */
  2. static struct cclass {
  3. char *name;
  4. char *chars;
  5. 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. };