1 | /* collsyms.h -- collating symbol names and their corresponding characters
|
---|
2 | (in ascii) as given by POSIX.2 in table 2.8. */
|
---|
3 |
|
---|
4 | /* Copyright (C) 1997-2002 Free Software Foundation, Inc.
|
---|
5 |
|
---|
6 | This file is part of GNU Bash, the Bourne Again SHell.
|
---|
7 |
|
---|
8 | Bash is free software; you can redistribute it and/or modify it under
|
---|
9 | the terms of the GNU General Public License as published by the Free
|
---|
10 | Software Foundation; either version 2, or (at your option) any later
|
---|
11 | version.
|
---|
12 |
|
---|
13 | Bash is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
---|
16 | for more details.
|
---|
17 |
|
---|
18 | You should have received a copy of the GNU General Public License along
|
---|
19 | with Bash; see the file COPYING. If not, write to the Free Software
|
---|
20 | Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
|
---|
21 |
|
---|
22 | /* The upper-case letters, lower-case letters, and digits are omitted from
|
---|
23 | this table. The digits are not included in the table in the POSIX.2
|
---|
24 | spec. The upper and lower case letters are translated by the code
|
---|
25 | in smatch.c:collsym(). */
|
---|
26 |
|
---|
27 | typedef struct _COLLSYM {
|
---|
28 | XCHAR *name;
|
---|
29 | CHAR code;
|
---|
30 | } __COLLSYM;
|
---|
31 |
|
---|
32 | static __COLLSYM POSIXCOLL [] =
|
---|
33 | {
|
---|
34 | { L("NUL"), L('\0') },
|
---|
35 | { L("SOH"), L('\001') },
|
---|
36 | { L("STX"), L('\002') },
|
---|
37 | { L("ETX"), L('\003') },
|
---|
38 | { L("EOT"), L('\004') },
|
---|
39 | { L("ENQ"), L('\005') },
|
---|
40 | { L("ACK"), L('\006') },
|
---|
41 | #ifdef __STDC__
|
---|
42 | { L("alert"), L('\a') },
|
---|
43 | #else
|
---|
44 | { L("alert"), L('\007') },
|
---|
45 | #endif
|
---|
46 | { L("BS"), L('\010') },
|
---|
47 | { L("backspace"), L('\b') },
|
---|
48 | { L("HT"), L('\011') },
|
---|
49 | { L("tab"), L('\t') },
|
---|
50 | { L("LF"), L('\012') },
|
---|
51 | { L("newline"), L('\n') },
|
---|
52 | { L("VT"), L('\013') },
|
---|
53 | { L("vertical-tab"), L('\v') },
|
---|
54 | { L("FF"), L('\014') },
|
---|
55 | { L("form-feed"), L('\f') },
|
---|
56 | { L("CR"), L('\015') },
|
---|
57 | { L("carriage-return"), L('\r') },
|
---|
58 | { L("SO"), L('\016') },
|
---|
59 | { L("SI"), L('\017') },
|
---|
60 | { L("DLE"), L('\020') },
|
---|
61 | { L("DC1"), L('\021') },
|
---|
62 | { L("DC2"), L('\022') },
|
---|
63 | { L("DC3"), L('\023') },
|
---|
64 | { L("DC4"), L('\024') },
|
---|
65 | { L("NAK"), L('\025') },
|
---|
66 | { L("SYN"), L('\026') },
|
---|
67 | { L("ETB"), L('\027') },
|
---|
68 | { L("CAN"), L('\030') },
|
---|
69 | { L("EM"), L('\031') },
|
---|
70 | { L("SUB"), L('\032') },
|
---|
71 | { L("ESC"), L('\033') },
|
---|
72 | { L("IS4"), L('\034') },
|
---|
73 | { L("FS"), L('\034') },
|
---|
74 | { L("IS3"), L('\035') },
|
---|
75 | { L("GS"), L('\035') },
|
---|
76 | { L("IS2"), L('\036') },
|
---|
77 | { L("RS"), L('\036') },
|
---|
78 | { L("IS1"), L('\037') },
|
---|
79 | { L("US"), L('\037') },
|
---|
80 | { L("space"), L(' ') },
|
---|
81 | { L("exclamation-mark"), L('!') },
|
---|
82 | { L("quotation-mark"), L('"') },
|
---|
83 | { L("number-sign"), L('#') },
|
---|
84 | { L("dollar-sign"), L('$') },
|
---|
85 | { L("percent-sign"), L('%') },
|
---|
86 | { L("ampersand"), L('&') },
|
---|
87 | { L("apostrophe"), L('\'') },
|
---|
88 | { L("left-parenthesis"), L('(') },
|
---|
89 | { L("right-parenthesis"), L(')') },
|
---|
90 | { L("asterisk"), L('*') },
|
---|
91 | { L("plus-sign"), L('+') },
|
---|
92 | { L("comma"), L(',') },
|
---|
93 | { L("hyphen"), L('-') },
|
---|
94 | { L("hyphen-minus"), L('-') },
|
---|
95 | { L("minus"), L('-') }, /* extension from POSIX.2 */
|
---|
96 | { L("dash"), L('-') }, /* extension from POSIX.2 */
|
---|
97 | { L("period"), L('.') },
|
---|
98 | { L("full-stop"), L('.') },
|
---|
99 | { L("slash"), L('/') },
|
---|
100 | { L("solidus"), L('/') }, /* extension from POSIX.2 */
|
---|
101 | { L("zero"), L('0') },
|
---|
102 | { L("one"), L('1') },
|
---|
103 | { L("two"), L('2') },
|
---|
104 | { L("three"), L('3') },
|
---|
105 | { L("four"), L('4') },
|
---|
106 | { L("five"), L('5') },
|
---|
107 | { L("six"), L('6') },
|
---|
108 | { L("seven"), L('7') },
|
---|
109 | { L("eight"), L('8') },
|
---|
110 | { L("nine"), L('9') },
|
---|
111 | { L("colon"), L(':') },
|
---|
112 | { L("semicolon"), L(';') },
|
---|
113 | { L("less-than-sign"), L('<') },
|
---|
114 | { L("equals-sign"), L('=') },
|
---|
115 | { L("greater-than-sign"), L('>') },
|
---|
116 | { L("question-mark"), L('?') },
|
---|
117 | { L("commercial-at"), L('@') },
|
---|
118 | /* upper-case letters omitted */
|
---|
119 | { L("left-square-bracket"), L('[') },
|
---|
120 | { L("backslash"), L('\\') },
|
---|
121 | { L("reverse-solidus"), L('\\') },
|
---|
122 | { L("right-square-bracket"), L(']') },
|
---|
123 | { L("circumflex"), L('^') },
|
---|
124 | { L("circumflex-accent"), L('^') }, /* extension from POSIX.2 */
|
---|
125 | { L("underscore"), L('_') },
|
---|
126 | { L("grave-accent"), L('`') },
|
---|
127 | /* lower-case letters omitted */
|
---|
128 | { L("left-brace"), L('{') }, /* extension from POSIX.2 */
|
---|
129 | { L("left-curly-bracket"), L('{') },
|
---|
130 | { L("vertical-line"), L('|') },
|
---|
131 | { L("right-brace"), L('}') }, /* extension from POSIX.2 */
|
---|
132 | { L("right-curly-bracket"), L('}') },
|
---|
133 | { L("tilde"), L('~') },
|
---|
134 | { L("DEL"), L('\177') },
|
---|
135 | { 0, 0 },
|
---|
136 | };
|
---|
137 |
|
---|
138 | #undef _COLLSYM
|
---|
139 | #undef __COLLSYM
|
---|
140 | #undef POSIXCOLL
|
---|