]> git.ipfire.org Git - thirdparty/bash.git/blob - lib/glob/collsyms.h
Imported from ../bash-2.04.tar.gz.
[thirdparty/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 "backspace", '\b',
50 "tab", '\t',
51 "newline", '\n',
52 "vertical-tab", '\v',
53 "form-feed", '\f',
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 "IS3", '\035',
71 "IS2", '\036',
72 "IS1", '\037',
73 "space", ' ',
74 "exclamation-mark", '!',
75 "quotation-mark", '"',
76 "number-sign", '#',
77 "dollar-sign", '$',
78 "percent-sign", '%',
79 "ampersand", '&',
80 "apostrophe", '\'',
81 "left-parenthesis", '(',
82 "right-parenthesis", ')',
83 "asterisk", '*',
84 "plus-sign", '+',
85 "comma", ',',
86 "hyphen", '-',
87 "minus", '-', /* extension from POSIX.2 */
88 "dash", '-', /* extension from POSIX.2 */
89 "period", '.',
90 "slash", '/',
91 "solidus", '/', /* extension from POSIX.2 */
92 "zero", '0',
93 "one", '1',
94 "two", '2',
95 "three", '3',
96 "four", '4',
97 "five", '5',
98 "six", '6',
99 "seven", '7',
100 "eight", '8',
101 "nine", '9',
102 "colon", ':',
103 "semicolon", ';',
104 "less-than-sign", '<',
105 "equals-sign", '=',
106 "greater-than-sign", '>',
107 "question-mark", '?',
108 "commercial-at", '@',
109 /* upper-case letters omitted */
110 "left-square-bracket",'[',
111 "backslash", '\\',
112 "reverse-solidus", '\\',
113 "right-square-bracket", ']',
114 "circumflex", '^',
115 "circumflex-accent", '^', /* extension from POSIX.2 */
116 "underscore", '_',
117 "grave-accent", '`',
118 /* lower-case letters omitted */
119 "left-brace", '{', /* extension from POSIX.2 */
120 "left-curly-bracket", '{',
121 "vertical-line", '|',
122 "right-brace", '}', /* extension from POSIX.2 */
123 "right-curly-bracket", '}',
124 "tilde", '~',
125 "DEL", '\177',
126 0, 0,
127 };
128
129 #endif