]> git.cworth.org Git - vogl/blob - src/voglcore/regex/cname.h
Initial vogl checkin
[vogl] / src / voglcore / regex / cname.h
1 /**************************************************************************
2  *
3  * Copyright 2013-2014 RAD Game Tools and Valve Software
4  * Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
5  * All Rights Reserved.
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a copy
8  * of this software and associated documentation files (the "Software"), to deal
9  * in the Software without restriction, including without limitation the rights
10  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11  * copies of the Software, and to permit persons to whom the Software is
12  * furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in
15  * all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23  * THE SOFTWARE.
24  *
25  **************************************************************************/
26
27 /* character-name table */
28 static struct cname
29 {
30     char *name;
31     char code;
32 } cnames[] =
33       {
34           { "NUL", '\0' },
35           { "SOH", '\001' },
36           { "STX", '\002' },
37           { "ETX", '\003' },
38           { "EOT", '\004' },
39           { "ENQ", '\005' },
40           { "ACK", '\006' },
41           { "BEL", '\007' },
42           { "alert", '\007' },
43           { "BS", '\010' },
44           { "backspace", '\b' },
45           { "HT", '\011' },
46           { "tab", '\t' },
47           { "LF", '\012' },
48           { "newline", '\n' },
49           { "VT", '\013' },
50           { "vertical-tab", '\v' },
51           { "FF", '\014' },
52           { "form-feed", '\f' },
53           { "CR", '\015' },
54           { "carriage-return", '\r' },
55           { "SO", '\016' },
56           { "SI", '\017' },
57           { "DLE", '\020' },
58           { "DC1", '\021' },
59           { "DC2", '\022' },
60           { "DC3", '\023' },
61           { "DC4", '\024' },
62           { "NAK", '\025' },
63           { "SYN", '\026' },
64           { "ETB", '\027' },
65           { "CAN", '\030' },
66           { "EM", '\031' },
67           { "SUB", '\032' },
68           { "ESC", '\033' },
69           { "IS4", '\034' },
70           { "FS", '\034' },
71           { "IS3", '\035' },
72           { "GS", '\035' },
73           { "IS2", '\036' },
74           { "RS", '\036' },
75           { "IS1", '\037' },
76           { "US", '\037' },
77           { "space", ' ' },
78           { "exclamation-mark", '!' },
79           { "quotation-mark", '"' },
80           { "number-sign", '#' },
81           { "dollar-sign", '$' },
82           { "percent-sign", '%' },
83           { "ampersand", '&' },
84           { "apostrophe", '\'' },
85           { "left-parenthesis", '(' },
86           { "right-parenthesis", ')' },
87           { "asterisk", '*' },
88           { "plus-sign", '+' },
89           { "comma", ',' },
90           { "hyphen", '-' },
91           { "hyphen-minus", '-' },
92           { "period", '.' },
93           { "full-stop", '.' },
94           { "slash", '/' },
95           { "solidus", '/' },
96           { "zero", '0' },
97           { "one", '1' },
98           { "two", '2' },
99           { "three", '3' },
100           { "four", '4' },
101           { "five", '5' },
102           { "six", '6' },
103           { "seven", '7' },
104           { "eight", '8' },
105           { "nine", '9' },
106           { "colon", ':' },
107           { "semicolon", ';' },
108           { "less-than-sign", '<' },
109           { "equals-sign", '=' },
110           { "greater-than-sign", '>' },
111           { "question-mark", '?' },
112           { "commercial-at", '@' },
113           { "left-square-bracket", '[' },
114           { "backslash", '\\' },
115           { "reverse-solidus", '\\' },
116           { "right-square-bracket", ']' },
117           { "circumflex", '^' },
118           { "circumflex-accent", '^' },
119           { "underscore", '_' },
120           { "low-line", '_' },
121           { "grave-accent", '`' },
122           { "left-brace", '{' },
123           { "left-curly-bracket", '{' },
124           { "vertical-line", '|' },
125           { "right-brace", '}' },
126           { "right-curly-bracket", '}' },
127           { "tilde", '~' },
128           { "DEL", '\177' },
129           { NULL, 0 },
130       };