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