1------------------------------------------------------------------------------
2--                                                                          --
3--                         GNAT RUN-TIME COMPONENTS                         --
4--                                                                          --
5--                           A D A . L O C A L E S                          --
6--                                                                          --
7--                                 S p e c                                  --
8--                                                                          --
9--          Copyright (C) 2010-2018, Free Software Foundation, Inc.         --
10--                                                                          --
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. --
15--                                                                          --
16------------------------------------------------------------------------------
17
18--  Note that this package is currently not implemented on any platform and
19--  functions Language and Country will always return
20--  Language_Unknown/Country_Unknown.
21
22package Ada.Locales is
23   pragma Preelaborate (Locales);
24   pragma Remote_Types (Locales);
25
26   type Language_Code is new String (1 .. 3)
27      with Dynamic_Predicate =>
28         (for all E of Language_Code => E in 'a' .. 'z');
29
30   type Country_Code is new String (1 .. 2)
31      with Dynamic_Predicate =>
32         (for all E of Country_Code => E in 'A' .. 'Z');
33
34   Language_Unknown : constant Language_Code := "und";
35   Country_Unknown  : constant Country_Code := "ZZ";
36
37   function Language return Language_Code;
38   function Country return Country_Code;
39
40end Ada.Locales;
41