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