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