1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . L O C A L E S --
9 -- Copyright (C) 2010-2016, Free Software Foundation, Inc. --
11 -- This specification is derived from the Ada Reference Manual for use with --
12 -- GNAT. In accordance with the copyright of that document, you can freely --
13 -- copy and modify this specification, provided that if you redistribute a --
14 -- modified version, any changes that you have made are clearly indicated. --
16 ------------------------------------------------------------------------------
18 package Ada
.Locales
is
19 pragma Preelaborate
(Locales
);
20 pragma Remote_Types
(Locales
);
22 type Language_Code
is new String (1 .. 3)
23 with Dynamic_Predicate
=>
24 (for all E
of Language_Code
=> E
in 'a' .. 'z');
26 type Country_Code
is new String (1 .. 2)
27 with Dynamic_Predicate
=>
28 (for all E
of Country_Code
=> E
in 'A' .. 'Z');
30 Language_Unknown
: constant Language_Code
:= "und";
31 Country_Unknown
: constant Country_Code
:= "ZZ";
33 function Language
return Language_Code
;
34 function Country
return Country_Code
;