make ^T work even better in presence of wide chars
[nvi.git] / regex / cname.h
blobaa4f77b93302d9e19ad3936cbc964923f3e109c2
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.
6 * This code is derived from software contributed to Berkeley by
7 * Henry Spencer of the University of Toronto.
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.
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.
37 * @(#)cname.h 8.2 (Berkeley) 3/16/94
40 /* character-name table */
41 static struct cname {
42 RCHAR_T *name;
43 char code;
44 } cnames[] = {
45 L("NUL"), '\0',
46 L("SOH"), '\001',
47 L("STX"), '\002',
48 L("ETX"), '\003',
49 L("EOT"), '\004',
50 L("ENQ"), '\005',
51 L("ACK"), '\006',
52 L("BEL"), '\007',
53 L("alert"), '\007',
54 L("BS"), '\010',
55 L("backspace"), '\b',
56 L("HT"), '\011',
57 L("tab"), '\t',
58 L("LF"), '\012',
59 L("newline"), '\n',
60 L("VT"), '\013',
61 L("vertical-tab"), '\v',
62 L("FF"), '\014',
63 L("form-feed"), '\f',
64 L("CR"), '\015',
65 L("carriage-return"), '\r',
66 L("SO"), '\016',
67 L("SI"), '\017',
68 L("DLE"), '\020',
69 L("DC1"), '\021',
70 L("DC2"), '\022',
71 L("DC3"), '\023',
72 L("DC4"), '\024',
73 L("NAK"), '\025',
74 L("SYN"), '\026',
75 L("ETB"), '\027',
76 L("CAN"), '\030',
77 L("EM"), '\031',
78 L("SUB"), '\032',
79 L("ESC"), '\033',
80 L("IS4"), '\034',
81 L("FS"), '\034',
82 L("IS3"), '\035',
83 L("GS"), '\035',
84 L("IS2"), '\036',
85 L("RS"), '\036',
86 L("IS1"), '\037',
87 L("US"), '\037',
88 L("space"), ' ',
89 L("exclamation-mark"), '!',
90 L("quotation-mark"), '"',
91 L("number-sign"), '#',
92 L("dollar-sign"), '$',
93 L("percent-sign"), '%',
94 L("ampersand"), '&',
95 L("apostrophe"), '\'',
96 L("left-parenthesis"), '(',
97 L("right-parenthesis"), ')',
98 L("asterisk"), '*',
99 L("plus-sign"), '+',
100 L("comma"), ',',
101 L("hyphen"), '-',
102 L("hyphen-minus"), '-',
103 L("period"), '.',
104 L("full-stop"), '.',
105 L("slash"), '/',
106 L("solidus"), '/',
107 L("zero"), '0',
108 L("one"), '1',
109 L("two"), '2',
110 L("three"), '3',
111 L("four"), '4',
112 L("five"), '5',
113 L("six"), '6',
114 L("seven"), '7',
115 L("eight"), '8',
116 L("nine"), '9',
117 L("colon"), ':',
118 L("semicolon"), ';',
119 L("less-than-sign"), '<',
120 L("equals-sign"), '=',
121 L("greater-than-sign"), '>',
122 L("question-mark"), '?',
123 L("commercial-at"), '@',
124 L("left-square-bracket"), '[',
125 L("backslash"), '\\',
126 L("reverse-solidus"), '\\',
127 L("right-square-bracket"), ']',
128 L("circumflex"), '^',
129 L("circumflex-accent"), '^',
130 L("underscore"), '_',
131 L("low-line"), '_',
132 L("grave-accent"), '`',
133 L("left-brace"), '{',
134 L("left-curly-bracket"), '{',
135 L("vertical-line"), '|',
136 L("right-brace"), '}',
137 L("right-curly-bracket"), '}',
138 L("tilde"), '~',
139 L("DEL"), '\177',
140 NULL, 0,