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