1*55843Sbostic /*- 2*55843Sbostic * Copyright (c) 1992 Henry Spencer. 3*55843Sbostic * Copyright (c) 1992 The Regents of the University of California. 4*55843Sbostic * All rights reserved. 5*55843Sbostic * 6*55843Sbostic * This code is derived from software contributed to Berkeley by 7*55843Sbostic * Henry Spencer of the University of Toronto. 8*55843Sbostic * 9*55843Sbostic * %sccs.include.redist.c% 10*55843Sbostic * 11*55843Sbostic * @(#)cclass.h 5.1 (Berkeley) 08/06/92 12*55843Sbostic */ 13*55843Sbostic 14*55843Sbostic /* character-class table */ 15*55843Sbostic static struct cclass { 16*55843Sbostic char *name; 17*55843Sbostic char *chars; 18*55843Sbostic char *multis; 19*55843Sbostic } cclasses[] = { 20*55843Sbostic "alnum", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 21*55843Sbostic 0123456789", "", 22*55843Sbostic "alpha", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 23*55843Sbostic "", 24*55843Sbostic "blank", " \t", "", 25*55843Sbostic "cntrl", "\007\b\t\n\v\f\r\1\2\3\4\5\6\16\17\20\21\22\23\24\ 26*55843Sbostic \25\26\27\30\31\32\33\34\35\36\37\177", "", 27*55843Sbostic "digit", "0123456789", "", 28*55843Sbostic "graph", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 29*55843Sbostic 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", 30*55843Sbostic "", 31*55843Sbostic "lower", "abcdefghijklmnopqrstuvwxyz", 32*55843Sbostic "", 33*55843Sbostic "print", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 34*55843Sbostic 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ", 35*55843Sbostic "", 36*55843Sbostic "punct", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", 37*55843Sbostic "", 38*55843Sbostic "space", "\t\n\v\f\r ", "", 39*55843Sbostic "upper", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 40*55843Sbostic "", 41*55843Sbostic "xdigit", "0123456789ABCDEFabcdef", 42*55843Sbostic "", 43*55843Sbostic NULL, 0, "" 44*55843Sbostic }; 45