1207753Smm/*-
2207753Smm * This code is derived from OpenBSD's libc/regex, original license follows:
3207753Smm *
4207753Smm * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5207753Smm * Copyright (c) 1992, 1993, 1994
6207753Smm *	The Regents of the University of California.  All rights reserved.
7207753Smm *
8207753Smm * This code is derived from software contributed to Berkeley by
9207753Smm * Henry Spencer.
10207753Smm *
11207753Smm * Redistribution and use in source and binary forms, with or without
12207753Smm * modification, are permitted provided that the following conditions
13207753Smm * are met:
14207753Smm * 1. Redistributions of source code must retain the above copyright
15207753Smm *    notice, this list of conditions and the following disclaimer.
16207753Smm * 2. Redistributions in binary form must reproduce the above copyright
17207753Smm *    notice, this list of conditions and the following disclaimer in the
18207753Smm *    documentation and/or other materials provided with the distribution.
19207753Smm * 3. Neither the name of the University nor the names of its contributors
20207753Smm *    may be used to endorse or promote products derived from this software
21207753Smm *    without specific prior written permission.
22207753Smm *
23207753Smm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24207753Smm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25207753Smm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26207753Smm * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27207753Smm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28207753Smm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29207753Smm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30207753Smm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31207753Smm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32207753Smm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33207753Smm * SUCH DAMAGE.
34207753Smm *
35207753Smm *	@(#)cname.h	8.3 (Berkeley) 3/20/94
36213700Smm */
37207753Smm
38207753Smm/* character-name table */
39207753Smmstatic struct cname {
40207753Smm	const char *name;
41207753Smm	char code;
42207753Smm} cnames[] = {
43207753Smm	{ "NUL",			'\0' },
44207753Smm	{ "SOH",			'\001' },
45292588Sdelphij	{ "STX",			'\002' },
46292588Sdelphij	{ "ETX",			'\003' },
47207753Smm	{ "EOT",			'\004' },
48207753Smm	{ "ENQ",			'\005' },
49207753Smm	{ "ACK",			'\006' },
50207753Smm	{ "BEL",			'\007' },
51207753Smm	{ "alert",			'\007' },
52207753Smm	{ "BS",				'\010' },
53207753Smm	{ "backspace",			'\b' },
54207753Smm	{ "HT",				'\011' },
55223935Smm	{ "tab",			'\t' },
56223935Smm	{ "LF",				'\012' },
57223935Smm	{ "newline",			'\n' },
58207753Smm	{ "VT",				'\013' },
59207753Smm	{ "vertical-tab",		'\v' },
60207753Smm	{ "FF",				'\014' },
61207753Smm	{ "form-feed",			'\f' },
62207753Smm	{ "CR",				'\015' },
63207753Smm	{ "carriage-return",		'\r' },
64207753Smm	{ "SO",				'\016' },
65207753Smm	{ "SI",				'\017' },
66207753Smm	{ "DLE",			'\020' },
67207753Smm	{ "DC1",			'\021' },
68207753Smm	{ "DC2",			'\022' },
69207753Smm	{ "DC3",			'\023' },
70207753Smm	{ "DC4",			'\024' },
71207753Smm	{ "NAK",			'\025' },
72207753Smm	{ "SYN",			'\026' },
73207753Smm	{ "ETB",			'\027' },
74207753Smm	{ "CAN",			'\030' },
75207753Smm	{ "EM",				'\031' },
76207753Smm	{ "SUB",			'\032' },
77207753Smm	{ "ESC",			'\033' },
78207753Smm	{ "IS4",			'\034' },
79207753Smm	{ "FS",				'\034' },
80207753Smm	{ "IS3",			'\035' },
81207753Smm	{ "GS",				'\035' },
82207753Smm	{ "IS2",			'\036' },
83207753Smm	{ "RS",				'\036' },
84207753Smm	{ "IS1",			'\037' },
85207753Smm	{ "US",				'\037' },
86207753Smm	{ "space",			' ' },
87207753Smm	{ "exclamation-mark",		'!' },
88223935Smm	{ "quotation-mark",		'"' },
89207753Smm	{ "number-sign",		'#' },
90207753Smm	{ "dollar-sign",		'$' },
91207753Smm	{ "percent-sign",		'%' },
92207753Smm	{ "ampersand",			'&' },
93207753Smm	{ "apostrophe",			'\'' },
94207753Smm	{ "left-parenthesis",		'(' },
95223935Smm	{ "right-parenthesis",		')' },
96223935Smm	{ "asterisk",			'*' },
97223935Smm	{ "plus-sign",			'+' },
98207753Smm	{ "comma",			',' },
99207753Smm	{ "hyphen",			'-' },
100207753Smm	{ "hyphen-minus",		'-' },
101223935Smm	{ "period",			'.' },
102223935Smm	{ "full-stop",			'.' },
103223935Smm	{ "slash",			'/' },
104207753Smm	{ "solidus",			'/' },
105207753Smm	{ "zero",			'0' },
106207753Smm	{ "one",			'1' },
107207753Smm	{ "two",			'2' },
108223935Smm	{ "three",			'3' },
109207753Smm	{ "four",			'4' },
110223935Smm	{ "five",			'5' },
111223935Smm	{ "six",			'6' },
112223935Smm	{ "seven",			'7' },
113223935Smm	{ "eight",			'8' },
114223935Smm	{ "nine",			'9' },
115207753Smm	{ "colon",			':' },
116207753Smm	{ "semicolon",			';' },
117207753Smm	{ "less-than-sign",		'<' },
118207753Smm	{ "equals-sign",		'=' },
119207753Smm	{ "greater-than-sign",		'>' },
120207753Smm	{ "question-mark",		'?' },
121207753Smm	{ "commercial-at",		'@' },
122207753Smm	{ "left-square-bracket",	'[' },
123207753Smm	{ "backslash",			'\\' },
124207753Smm	{ "reverse-solidus",		'\\' },
125207753Smm	{ "right-square-bracket",	']' },
126207753Smm	{ "circumflex",			'^' },
127207753Smm	{ "circumflex-accent",		'^' },
128207753Smm	{ "underscore",			'_' },
129207753Smm	{ "low-line",			'_' },
130207753Smm	{ "grave-accent",		'`' },
131207753Smm	{ "left-brace",			'{' },
132207753Smm	{ "left-curly-bracket",		'{' },
133207753Smm	{ "vertical-line",		'|' },
134207753Smm	{ "right-brace",		'}' },
135207753Smm	{ "right-curly-bracket",	'}' },
136207753Smm	{ "tilde",			'~' },
137207753Smm	{ "DEL",			'\177' },
138207753Smm	{ NULL,				0 }
139207753Smm};
140207753Smm