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