xref: /original-bsd/lib/libc/regex/cname.h (revision 76321dfe)
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.
8  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)cname.h	8.3 (Berkeley) 03/20/94
12  */
13 
14 /* character-name table */
15 static struct cname {
16 	char *name;
17 	char code;
18 } cnames[] = {
19 	"NUL",	'\0',
20 	"SOH",	'\001',
21 	"STX",	'\002',
22 	"ETX",	'\003',
23 	"EOT",	'\004',
24 	"ENQ",	'\005',
25 	"ACK",	'\006',
26 	"BEL",	'\007',
27 	"alert",	'\007',
28 	"BS",		'\010',
29 	"backspace",	'\b',
30 	"HT",		'\011',
31 	"tab",		'\t',
32 	"LF",		'\012',
33 	"newline",	'\n',
34 	"VT",		'\013',
35 	"vertical-tab",	'\v',
36 	"FF",		'\014',
37 	"form-feed",	'\f',
38 	"CR",		'\015',
39 	"carriage-return",	'\r',
40 	"SO",	'\016',
41 	"SI",	'\017',
42 	"DLE",	'\020',
43 	"DC1",	'\021',
44 	"DC2",	'\022',
45 	"DC3",	'\023',
46 	"DC4",	'\024',
47 	"NAK",	'\025',
48 	"SYN",	'\026',
49 	"ETB",	'\027',
50 	"CAN",	'\030',
51 	"EM",	'\031',
52 	"SUB",	'\032',
53 	"ESC",	'\033',
54 	"IS4",	'\034',
55 	"FS",	'\034',
56 	"IS3",	'\035',
57 	"GS",	'\035',
58 	"IS2",	'\036',
59 	"RS",	'\036',
60 	"IS1",	'\037',
61 	"US",	'\037',
62 	"space",		' ',
63 	"exclamation-mark",	'!',
64 	"quotation-mark",	'"',
65 	"number-sign",		'#',
66 	"dollar-sign",		'$',
67 	"percent-sign",		'%',
68 	"ampersand",		'&',
69 	"apostrophe",		'\'',
70 	"left-parenthesis",	'(',
71 	"right-parenthesis",	')',
72 	"asterisk",	'*',
73 	"plus-sign",	'+',
74 	"comma",	',',
75 	"hyphen",	'-',
76 	"hyphen-minus",	'-',
77 	"period",	'.',
78 	"full-stop",	'.',
79 	"slash",	'/',
80 	"solidus",	'/',
81 	"zero",		'0',
82 	"one",		'1',
83 	"two",		'2',
84 	"three",	'3',
85 	"four",		'4',
86 	"five",		'5',
87 	"six",		'6',
88 	"seven",	'7',
89 	"eight",	'8',
90 	"nine",		'9',
91 	"colon",	':',
92 	"semicolon",	';',
93 	"less-than-sign",	'<',
94 	"equals-sign",		'=',
95 	"greater-than-sign",	'>',
96 	"question-mark",	'?',
97 	"commercial-at",	'@',
98 	"left-square-bracket",	'[',
99 	"backslash",		'\\',
100 	"reverse-solidus",	'\\',
101 	"right-square-bracket",	']',
102 	"circumflex",		'^',
103 	"circumflex-accent",	'^',
104 	"underscore",		'_',
105 	"low-line",		'_',
106 	"grave-accent",		'`',
107 	"left-brace",		'{',
108 	"left-curly-bracket",	'{',
109 	"vertical-line",	'|',
110 	"right-brace",		'}',
111 	"right-curly-bracket",	'}',
112 	"tilde",		'~',
113 	"DEL",	'\177',
114 	NULL,	0,
115 };
116