xref: /minix3/external/bsd/nvi/dist/regex/cname.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /*	$NetBSD: cname.h,v 1.2 2013/11/22 15:52:06 christos Exp $ */
2*84d9c625SLionel Sambuc /*-
3*84d9c625SLionel Sambuc  * Copyright (c) 1992, 1993, 1994 Henry Spencer.
4*84d9c625SLionel Sambuc  * Copyright (c) 1992, 1993, 1994
5*84d9c625SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
6*84d9c625SLionel Sambuc  *
7*84d9c625SLionel Sambuc  * This code is derived from software contributed to Berkeley by
8*84d9c625SLionel Sambuc  * Henry Spencer of the University of Toronto.
9*84d9c625SLionel Sambuc  *
10*84d9c625SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
11*84d9c625SLionel Sambuc  * modification, are permitted provided that the following conditions
12*84d9c625SLionel Sambuc  * are met:
13*84d9c625SLionel Sambuc  * 1. Redistributions of source code must retain the above copyright
14*84d9c625SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
15*84d9c625SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
16*84d9c625SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
17*84d9c625SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
18*84d9c625SLionel Sambuc  * 3. All advertising materials mentioning features or use of this software
19*84d9c625SLionel Sambuc  *    must display the following acknowledgement:
20*84d9c625SLionel Sambuc  *	This product includes software developed by the University of
21*84d9c625SLionel Sambuc  *	California, Berkeley and its contributors.
22*84d9c625SLionel Sambuc  * 4. Neither the name of the University nor the names of its contributors
23*84d9c625SLionel Sambuc  *    may be used to endorse or promote products derived from this software
24*84d9c625SLionel Sambuc  *    without specific prior written permission.
25*84d9c625SLionel Sambuc  *
26*84d9c625SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27*84d9c625SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28*84d9c625SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29*84d9c625SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30*84d9c625SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31*84d9c625SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32*84d9c625SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33*84d9c625SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34*84d9c625SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35*84d9c625SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36*84d9c625SLionel Sambuc  * SUCH DAMAGE.
37*84d9c625SLionel Sambuc  *
38*84d9c625SLionel Sambuc  *	@(#)cname.h	8.2 (Berkeley) 3/16/94
39*84d9c625SLionel Sambuc  */
40*84d9c625SLionel Sambuc 
41*84d9c625SLionel Sambuc /* character-name table */
42*84d9c625SLionel Sambuc static struct cname {
43*84d9c625SLionel Sambuc 	const RCHAR_T *name;
44*84d9c625SLionel Sambuc 	char code;
45*84d9c625SLionel Sambuc } cnames[] = {
46*84d9c625SLionel Sambuc 	{ L("NUL"),		'\0' },
47*84d9c625SLionel Sambuc 	{ L("SOH"),		'\001' },
48*84d9c625SLionel Sambuc 	{ L("STX"),		'\002' },
49*84d9c625SLionel Sambuc 	{ L("ETX"),		'\003' },
50*84d9c625SLionel Sambuc 	{ L("EOT"),		'\004' },
51*84d9c625SLionel Sambuc 	{ L("ENQ"),		'\005' },
52*84d9c625SLionel Sambuc 	{ L("ACK"),		'\006' },
53*84d9c625SLionel Sambuc 	{ L("BEL"),		'\007' },
54*84d9c625SLionel Sambuc 	{ L("alert"),		'\007' },
55*84d9c625SLionel Sambuc 	{ L("BS"),		'\010' },
56*84d9c625SLionel Sambuc 	{ L("backspace"),	'\b' },
57*84d9c625SLionel Sambuc 	{ L("HT"),		'\011' },
58*84d9c625SLionel Sambuc 	{ L("tab"),		'\t' },
59*84d9c625SLionel Sambuc 	{ L("LF"),		'\012' },
60*84d9c625SLionel Sambuc 	{ L("newline"),		'\n' },
61*84d9c625SLionel Sambuc 	{ L("VT"),		'\013' },
62*84d9c625SLionel Sambuc 	{ L("vertical-tab"),	'\v' },
63*84d9c625SLionel Sambuc 	{ L("FF"),		'\014' },
64*84d9c625SLionel Sambuc 	{ L("form-feed"),	'\f' },
65*84d9c625SLionel Sambuc 	{ L("CR"),		'\015' },
66*84d9c625SLionel Sambuc 	{ L("carriage-return"),	'\r' },
67*84d9c625SLionel Sambuc 	{ L("SO"),		'\016' },
68*84d9c625SLionel Sambuc 	{ L("SI"),		'\017' },
69*84d9c625SLionel Sambuc 	{ L("DLE"),		'\020' },
70*84d9c625SLionel Sambuc 	{ L("DC1"),		'\021' },
71*84d9c625SLionel Sambuc 	{ L("DC2"),		'\022' },
72*84d9c625SLionel Sambuc 	{ L("DC3"),		'\023' },
73*84d9c625SLionel Sambuc 	{ L("DC4"),		'\024' },
74*84d9c625SLionel Sambuc 	{ L("NAK"),		'\025' },
75*84d9c625SLionel Sambuc 	{ L("SYN"),		'\026' },
76*84d9c625SLionel Sambuc 	{ L("ETB"),		'\027' },
77*84d9c625SLionel Sambuc 	{ L("CAN"),		'\030' },
78*84d9c625SLionel Sambuc 	{ L("EM"),		'\031' },
79*84d9c625SLionel Sambuc 	{ L("SUB"),		'\032' },
80*84d9c625SLionel Sambuc 	{ L("ESC"),		'\033' },
81*84d9c625SLionel Sambuc 	{ L("IS4"),		'\034' },
82*84d9c625SLionel Sambuc 	{ L("FS"),		'\034' },
83*84d9c625SLionel Sambuc 	{ L("IS3"),		'\035' },
84*84d9c625SLionel Sambuc 	{ L("GS"),		'\035' },
85*84d9c625SLionel Sambuc 	{ L("IS2"),		'\036' },
86*84d9c625SLionel Sambuc 	{ L("RS"),		'\036' },
87*84d9c625SLionel Sambuc 	{ L("IS1"),		'\037' },
88*84d9c625SLionel Sambuc 	{ L("US"),		'\037' },
89*84d9c625SLionel Sambuc 	{ L("space"),		' ' },
90*84d9c625SLionel Sambuc 	{ L("exclamation-mark"),'!' },
91*84d9c625SLionel Sambuc 	{ L("quotation-mark"),	'"' },
92*84d9c625SLionel Sambuc 	{ L("number-sign"),	'#' },
93*84d9c625SLionel Sambuc 	{ L("dollar-sign"),	'$' },
94*84d9c625SLionel Sambuc 	{ L("percent-sign"),	'%' },
95*84d9c625SLionel Sambuc 	{ L("ampersand"),	'&' },
96*84d9c625SLionel Sambuc 	{ L("apostrophe"),	'\'' },
97*84d9c625SLionel Sambuc 	{ L("left-parenthesis"),'(' },
98*84d9c625SLionel Sambuc 	{ L("right-parenthesis"),')' },
99*84d9c625SLionel Sambuc 	{ L("asterisk"),	'*' },
100*84d9c625SLionel Sambuc 	{ L("plus-sign"),	'+' },
101*84d9c625SLionel Sambuc 	{ L("comma"),		',' },
102*84d9c625SLionel Sambuc 	{ L("hyphen"),		'-' },
103*84d9c625SLionel Sambuc 	{ L("hyphen-minus"),	'-' },
104*84d9c625SLionel Sambuc 	{ L("period"),		'.' },
105*84d9c625SLionel Sambuc 	{ L("full-stop"),	'.' },
106*84d9c625SLionel Sambuc 	{ L("slash"),		'/' },
107*84d9c625SLionel Sambuc 	{ L("solidus"),		'/' },
108*84d9c625SLionel Sambuc 	{ L("zero"),		'0' },
109*84d9c625SLionel Sambuc 	{ L("one"),		'1' },
110*84d9c625SLionel Sambuc 	{ L("two"),		'2' },
111*84d9c625SLionel Sambuc 	{ L("three"),		'3' },
112*84d9c625SLionel Sambuc 	{ L("four"),		'4' },
113*84d9c625SLionel Sambuc 	{ L("five"),		'5' },
114*84d9c625SLionel Sambuc 	{ L("six"),		'6' },
115*84d9c625SLionel Sambuc 	{ L("seven"),		'7' },
116*84d9c625SLionel Sambuc 	{ L("eight"),		'8' },
117*84d9c625SLionel Sambuc 	{ L("nine"),		'9' },
118*84d9c625SLionel Sambuc 	{ L("colon"),		':' },
119*84d9c625SLionel Sambuc 	{ L("semicolon"),	';' },
120*84d9c625SLionel Sambuc 	{ L("less-than-sign"),	'<' },
121*84d9c625SLionel Sambuc 	{ L("equals-sign"),	'=' },
122*84d9c625SLionel Sambuc 	{ L("greater-than-sign"),'>' },
123*84d9c625SLionel Sambuc 	{ L("question-mark"),	'?' },
124*84d9c625SLionel Sambuc 	{ L("commercial-at"),	'@' },
125*84d9c625SLionel Sambuc 	{ L("left-square-bracket"),'[' },
126*84d9c625SLionel Sambuc 	{ L("backslash"),	'\\' },
127*84d9c625SLionel Sambuc 	{ L("reverse-solidus"),	'\\' },
128*84d9c625SLionel Sambuc 	{ L("right-square-bracket"),']' },
129*84d9c625SLionel Sambuc 	{ L("circumflex"),	'^' },
130*84d9c625SLionel Sambuc 	{ L("circumflex-accent"),'^' },
131*84d9c625SLionel Sambuc 	{ L("underscore"),	'_' },
132*84d9c625SLionel Sambuc 	{ L("low-line"),	'_' },
133*84d9c625SLionel Sambuc 	{ L("grave-accent"),	'`' },
134*84d9c625SLionel Sambuc 	{ L("left-brace"),	'{' },
135*84d9c625SLionel Sambuc 	{ L("left-curly-bracket"),'{' },
136*84d9c625SLionel Sambuc 	{ L("vertical-line"),	'|' },
137*84d9c625SLionel Sambuc 	{ L("right-brace"),	'}' },
138*84d9c625SLionel Sambuc 	{ L("right-curly-bracket"),'}' },
139*84d9c625SLionel Sambuc 	{ L("tilde"),		'~' },
140*84d9c625SLionel Sambuc 	{ L("DEL"),		'\177' },
141*84d9c625SLionel Sambuc 	{ NULL,			0 },
142*84d9c625SLionel Sambuc };
143