1 ------------------------------------------------------------------------------
3 -- GNAT RUNTIME COMPONENTS --
5 -- A D A . C H A R A C T E R S . L A T I N _ 9 --
9 -- Copyright (C) 2002 Free Software Foundation, Inc. --
11 -- This specification is derived from the Ada Reference Manual for use with --
12 -- GNAT. The copyright notice above, and the license provisions that follow --
13 -- apply solely to the modifications made to Ada.Characters.Latin_1, noted --
14 -- in the text, to derive the equivalent Latin-9 package. --
16 -- GNAT is free software; you can redistribute it and/or modify it under --
17 -- terms of the GNU General Public License as published by the Free Soft- --
18 -- ware Foundation; either version 2, or (at your option) any later ver- --
19 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
20 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
21 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
22 -- for more details. You should have received a copy of the GNU General --
23 -- Public License distributed with GNAT; see file COPYING. If not, write --
24 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
25 -- MA 02111-1307, USA. --
27 -- As a special exception, if other files instantiate generics from this --
28 -- unit, or you link this unit with other files to produce an executable, --
29 -- this unit does not by itself cause the resulting executable to be --
30 -- covered by the GNU General Public License. This exception does not --
31 -- however invalidate any other reasons why the executable file might be --
32 -- covered by the GNU Public License. --
34 -- GNAT was originally developed by the GNAT team at New York University. --
35 -- Extensive contributions were provided by Ada Core Technologies Inc. --
37 ------------------------------------------------------------------------------
39 -- This package provides definitions for Latin-9 (ISO-8859-9) analogous to
40 -- those defined in the standard package Ada.Characters.Latin_1 for Latin-1.
42 package Ada
.Characters
.Latin_9
is
43 pragma Pure
(Latin_9
);
45 ------------------------
46 -- Control Characters --
47 ------------------------
49 NUL
: constant Character := Character'Val (0);
50 SOH
: constant Character := Character'Val (1);
51 STX
: constant Character := Character'Val (2);
52 ETX
: constant Character := Character'Val (3);
53 EOT
: constant Character := Character'Val (4);
54 ENQ
: constant Character := Character'Val (5);
55 ACK
: constant Character := Character'Val (6);
56 BEL
: constant Character := Character'Val (7);
57 BS
: constant Character := Character'Val (8);
58 HT
: constant Character := Character'Val (9);
59 LF
: constant Character := Character'Val (10);
60 VT
: constant Character := Character'Val (11);
61 FF
: constant Character := Character'Val (12);
62 CR
: constant Character := Character'Val (13);
63 SO
: constant Character := Character'Val (14);
64 SI
: constant Character := Character'Val (15);
66 DLE
: constant Character := Character'Val (16);
67 DC1
: constant Character := Character'Val (17);
68 DC2
: constant Character := Character'Val (18);
69 DC3
: constant Character := Character'Val (19);
70 DC4
: constant Character := Character'Val (20);
71 NAK
: constant Character := Character'Val (21);
72 SYN
: constant Character := Character'Val (22);
73 ETB
: constant Character := Character'Val (23);
74 CAN
: constant Character := Character'Val (24);
75 EM
: constant Character := Character'Val (25);
76 SUB
: constant Character := Character'Val (26);
77 ESC
: constant Character := Character'Val (27);
78 FS
: constant Character := Character'Val (28);
79 GS
: constant Character := Character'Val (29);
80 RS
: constant Character := Character'Val (30);
81 US
: constant Character := Character'Val (31);
83 --------------------------------
84 -- ISO 646 Graphic Characters --
85 --------------------------------
87 Space
: constant Character := ' '; -- Character'Val(32)
88 Exclamation
: constant Character := '!'; -- Character'Val(33)
89 Quotation
: constant Character := '"'; -- Character'Val(34)
90 Number_Sign
: constant Character := '#'; -- Character'Val(35)
91 Dollar_Sign
: constant Character := '$'; -- Character'Val(36)
92 Percent_Sign
: constant Character := '%'; -- Character'Val(37)
93 Ampersand
: constant Character := '&'; -- Character'Val(38)
94 Apostrophe
: constant Character := '''; -- Character'Val(39)
95 Left_Parenthesis
: constant Character := '('; -- Character'Val(40)
96 Right_Parenthesis
: constant Character := ')'; -- Character'Val(41)
97 Asterisk
: constant Character := '*'; -- Character'Val(42)
98 Plus_Sign
: constant Character := '+'; -- Character'Val(43)
99 Comma
: constant Character := ','; -- Character'Val(44)
100 Hyphen
: constant Character := '-'; -- Character'Val(45)
101 Minus_Sign
: Character renames Hyphen
;
102 Full_Stop
: constant Character := '.'; -- Character'Val(46)
103 Solidus
: constant Character := '/'; -- Character'Val(47)
105 -- Decimal digits '0' though '9' are at positions 48 through 57
107 Colon
: constant Character := ':'; -- Character'Val(58)
108 Semicolon
: constant Character := ';'; -- Character'Val(59)
109 Less_Than_Sign
: constant Character := '<'; -- Character'Val(60)
110 Equals_Sign
: constant Character := '='; -- Character'Val(61)
111 Greater_Than_Sign
: constant Character := '>'; -- Character'Val(62)
112 Question
: constant Character := '?'; -- Character'Val(63)
114 Commercial_At
: constant Character := '@'; -- Character'Val(64)
116 -- Letters 'A' through 'Z' are at positions 65 through 90
118 Left_Square_Bracket
: constant Character := '['; -- Character'Val (91)
119 Reverse_Solidus
: constant Character := '\'; -- Character'Val (92)
120 Right_Square_Bracket
: constant Character := ']'; -- Character'Val (93)
121 Circumflex
: constant Character := '^'; -- Character'Val (94)
122 Low_Line
: constant Character := '_'; -- Character'Val (95)
124 Grave
: constant Character := '`'; -- Character'Val (96)
125 LC_A
: constant Character := 'a'; -- Character'Val (97)
126 LC_B
: constant Character := 'b'; -- Character'Val (98)
127 LC_C
: constant Character := 'c'; -- Character'Val (99)
128 LC_D
: constant Character := 'd'; -- Character'Val (100)
129 LC_E
: constant Character := 'e'; -- Character'Val (101)
130 LC_F
: constant Character := 'f'; -- Character'Val (102)
131 LC_G
: constant Character := 'g'; -- Character'Val (103)
132 LC_H
: constant Character := 'h'; -- Character'Val (104)
133 LC_I
: constant Character := 'i'; -- Character'Val (105)
134 LC_J
: constant Character := 'j'; -- Character'Val (106)
135 LC_K
: constant Character := 'k'; -- Character'Val (107)
136 LC_L
: constant Character := 'l'; -- Character'Val (108)
137 LC_M
: constant Character := 'm'; -- Character'Val (109)
138 LC_N
: constant Character := 'n'; -- Character'Val (110)
139 LC_O
: constant Character := 'o'; -- Character'Val (111)
140 LC_P
: constant Character := 'p'; -- Character'Val (112)
141 LC_Q
: constant Character := 'q'; -- Character'Val (113)
142 LC_R
: constant Character := 'r'; -- Character'Val (114)
143 LC_S
: constant Character := 's'; -- Character'Val (115)
144 LC_T
: constant Character := 't'; -- Character'Val (116)
145 LC_U
: constant Character := 'u'; -- Character'Val (117)
146 LC_V
: constant Character := 'v'; -- Character'Val (118)
147 LC_W
: constant Character := 'w'; -- Character'Val (119)
148 LC_X
: constant Character := 'x'; -- Character'Val (120)
149 LC_Y
: constant Character := 'y'; -- Character'Val (121)
150 LC_Z
: constant Character := 'z'; -- Character'Val (122)
151 Left_Curly_Bracket
: constant Character := '{'; -- Character'Val (123)
152 Vertical_Line
: constant Character := '|'; -- Character'Val (124)
153 Right_Curly_Bracket
: constant Character := '}'; -- Character'Val (125)
154 Tilde
: constant Character := '~'; -- Character'Val (126)
155 DEL
: constant Character := Character'Val (127);
157 ---------------------------------
158 -- ISO 6429 Control Characters --
159 ---------------------------------
161 IS4
: Character renames FS
;
162 IS3
: Character renames GS
;
163 IS2
: Character renames RS
;
164 IS1
: Character renames US
;
166 Reserved_128
: constant Character := Character'Val (128);
167 Reserved_129
: constant Character := Character'Val (129);
168 BPH
: constant Character := Character'Val (130);
169 NBH
: constant Character := Character'Val (131);
170 Reserved_132
: constant Character := Character'Val (132);
171 NEL
: constant Character := Character'Val (133);
172 SSA
: constant Character := Character'Val (134);
173 ESA
: constant Character := Character'Val (135);
174 HTS
: constant Character := Character'Val (136);
175 HTJ
: constant Character := Character'Val (137);
176 VTS
: constant Character := Character'Val (138);
177 PLD
: constant Character := Character'Val (139);
178 PLU
: constant Character := Character'Val (140);
179 RI
: constant Character := Character'Val (141);
180 SS2
: constant Character := Character'Val (142);
181 SS3
: constant Character := Character'Val (143);
183 DCS
: constant Character := Character'Val (144);
184 PU1
: constant Character := Character'Val (145);
185 PU2
: constant Character := Character'Val (146);
186 STS
: constant Character := Character'Val (147);
187 CCH
: constant Character := Character'Val (148);
188 MW
: constant Character := Character'Val (149);
189 SPA
: constant Character := Character'Val (150);
190 EPA
: constant Character := Character'Val (151);
192 SOS
: constant Character := Character'Val (152);
193 Reserved_153
: constant Character := Character'Val (153);
194 SCI
: constant Character := Character'Val (154);
195 CSI
: constant Character := Character'Val (155);
196 ST
: constant Character := Character'Val (156);
197 OSC
: constant Character := Character'Val (157);
198 PM
: constant Character := Character'Val (158);
199 APC
: constant Character := Character'Val (159);
201 ------------------------------
202 -- Other Graphic Characters --
203 ------------------------------
205 -- Character positions 160 (16#A0#) .. 175 (16#AF#)
207 No_Break_Space
: constant Character := Character'Val (160);
208 NBSP
: Character renames No_Break_Space
;
209 Inverted_Exclamation
: constant Character := Character'Val (161);
210 Cent_Sign
: constant Character := Character'Val (162);
211 Pound_Sign
: constant Character := Character'Val (163);
212 Euro_Sign
: constant Character := Character'Val (164);
213 Yen_Sign
: constant Character := Character'Val (165);
214 UC_S_Caron
: constant Character := Character'Val (166);
215 Section_Sign
: constant Character := Character'Val (167);
216 LC_S_Caron
: constant Character := Character'Val (168);
217 Copyright_Sign
: constant Character := Character'Val (169);
218 Feminine_Ordinal_Indicator
: constant Character := Character'Val (170);
219 Left_Angle_Quotation
: constant Character := Character'Val (171);
220 Not_Sign
: constant Character := Character'Val (172);
221 Soft_Hyphen
: constant Character := Character'Val (173);
222 Registered_Trade_Mark_Sign
: constant Character := Character'Val (174);
223 Macron
: constant Character := Character'Val (175);
225 -- Character positions 176 (16#B0#) .. 191 (16#BF#)
227 Degree_Sign
: constant Character := Character'Val (176);
228 Ring_Above
: Character renames Degree_Sign
;
229 Plus_Minus_Sign
: constant Character := Character'Val (177);
230 Superscript_Two
: constant Character := Character'Val (178);
231 Superscript_Three
: constant Character := Character'Val (179);
232 UC_Z_Caron
: constant Character := Character'Val (180);
233 Micro_Sign
: constant Character := Character'Val (181);
234 Pilcrow_Sign
: constant Character := Character'Val (182);
235 Paragraph_Sign
: Character renames Pilcrow_Sign
;
236 Middle_Dot
: constant Character := Character'Val (183);
237 LC_Z_Caron
: constant Character := Character'Val (184);
238 Superscript_One
: constant Character := Character'Val (185);
239 Masculine_Ordinal_Indicator
: constant Character := Character'Val (186);
240 Right_Angle_Quotation
: constant Character := Character'Val (187);
241 UC_Ligature_OE
: constant Character := Character'Val (188);
242 LC_Ligature_OE
: constant Character := Character'Val (189);
243 UC_Y_Diaeresis
: constant Character := Character'Val (190);
244 Inverted_Question
: constant Character := Character'Val (191);
246 -- Character positions 192 (16#C0#) .. 207 (16#CF#)
248 UC_A_Grave
: constant Character := Character'Val (192);
249 UC_A_Acute
: constant Character := Character'Val (193);
250 UC_A_Circumflex
: constant Character := Character'Val (194);
251 UC_A_Tilde
: constant Character := Character'Val (195);
252 UC_A_Diaeresis
: constant Character := Character'Val (196);
253 UC_A_Ring
: constant Character := Character'Val (197);
254 UC_AE_Diphthong
: constant Character := Character'Val (198);
255 UC_C_Cedilla
: constant Character := Character'Val (199);
256 UC_E_Grave
: constant Character := Character'Val (200);
257 UC_E_Acute
: constant Character := Character'Val (201);
258 UC_E_Circumflex
: constant Character := Character'Val (202);
259 UC_E_Diaeresis
: constant Character := Character'Val (203);
260 UC_I_Grave
: constant Character := Character'Val (204);
261 UC_I_Acute
: constant Character := Character'Val (205);
262 UC_I_Circumflex
: constant Character := Character'Val (206);
263 UC_I_Diaeresis
: constant Character := Character'Val (207);
265 -- Character positions 208 (16#D0#) .. 223 (16#DF#)
267 UC_Icelandic_Eth
: constant Character := Character'Val (208);
268 UC_N_Tilde
: constant Character := Character'Val (209);
269 UC_O_Grave
: constant Character := Character'Val (210);
270 UC_O_Acute
: constant Character := Character'Val (211);
271 UC_O_Circumflex
: constant Character := Character'Val (212);
272 UC_O_Tilde
: constant Character := Character'Val (213);
273 UC_O_Diaeresis
: constant Character := Character'Val (214);
274 Multiplication_Sign
: constant Character := Character'Val (215);
275 UC_O_Oblique_Stroke
: constant Character := Character'Val (216);
276 UC_U_Grave
: constant Character := Character'Val (217);
277 UC_U_Acute
: constant Character := Character'Val (218);
278 UC_U_Circumflex
: constant Character := Character'Val (219);
279 UC_U_Diaeresis
: constant Character := Character'Val (220);
280 UC_Y_Acute
: constant Character := Character'Val (221);
281 UC_Icelandic_Thorn
: constant Character := Character'Val (222);
282 LC_German_Sharp_S
: constant Character := Character'Val (223);
284 -- Character positions 224 (16#E0#) .. 239 (16#EF#)
286 LC_A_Grave
: constant Character := Character'Val (224);
287 LC_A_Acute
: constant Character := Character'Val (225);
288 LC_A_Circumflex
: constant Character := Character'Val (226);
289 LC_A_Tilde
: constant Character := Character'Val (227);
290 LC_A_Diaeresis
: constant Character := Character'Val (228);
291 LC_A_Ring
: constant Character := Character'Val (229);
292 LC_AE_Diphthong
: constant Character := Character'Val (230);
293 LC_C_Cedilla
: constant Character := Character'Val (231);
294 LC_E_Grave
: constant Character := Character'Val (232);
295 LC_E_Acute
: constant Character := Character'Val (233);
296 LC_E_Circumflex
: constant Character := Character'Val (234);
297 LC_E_Diaeresis
: constant Character := Character'Val (235);
298 LC_I_Grave
: constant Character := Character'Val (236);
299 LC_I_Acute
: constant Character := Character'Val (237);
300 LC_I_Circumflex
: constant Character := Character'Val (238);
301 LC_I_Diaeresis
: constant Character := Character'Val (239);
303 -- Character positions 240 (16#F0#) .. 255 (16#FF)
304 LC_Icelandic_Eth
: constant Character := Character'Val (240);
305 LC_N_Tilde
: constant Character := Character'Val (241);
306 LC_O_Grave
: constant Character := Character'Val (242);
307 LC_O_Acute
: constant Character := Character'Val (243);
308 LC_O_Circumflex
: constant Character := Character'Val (244);
309 LC_O_Tilde
: constant Character := Character'Val (245);
310 LC_O_Diaeresis
: constant Character := Character'Val (246);
311 Division_Sign
: constant Character := Character'Val (247);
312 LC_O_Oblique_Stroke
: constant Character := Character'Val (248);
313 LC_U_Grave
: constant Character := Character'Val (249);
314 LC_U_Acute
: constant Character := Character'Val (250);
315 LC_U_Circumflex
: constant Character := Character'Val (251);
316 LC_U_Diaeresis
: constant Character := Character'Val (252);
317 LC_Y_Acute
: constant Character := Character'Val (253);
318 LC_Icelandic_Thorn
: constant Character := Character'Val (254);
319 LC_Y_Diaeresis
: constant Character := Character'Val (255);
321 ------------------------------------------------
322 -- Summary of Changes from Latin-1 => Latin-9 --
323 ------------------------------------------------
325 -- 164 Currency => Euro_Sign
326 -- 166 Broken_Bar => UC_S_Caron
327 -- 168 Diaeresis => LC_S_Caron
328 -- 180 Acute => UC_Z_Caron
329 -- 184 Cedilla => LC_Z_Caron
330 -- 188 Fraction_One_Quarter => UC_Ligature_OE
331 -- 189 Fraction_One_Half => LC_Ligature_OE
332 -- 190 Fraction_Three_Quarters => UC_Y_Diaeresis
334 end Ada
.Characters
.Latin_9
;