PR rtl-optimization/82913
[official-gcc.git] / gcc / ada / libgnat / a-ztenau.ads
blob394ad204b352995fac1e585c8795dfe5ba551bf1
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- ADA.WIDE_WIDE_TEXT_IO.ENUMERATION_AUX --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package contains the routines for Ada.Wide_Wide_Text_IO.Enumeration_IO
33 -- that are shared among separate instantiations.
35 private package Ada.Wide_Wide_Text_IO.Enumeration_Aux is
37 procedure Get_Enum_Lit
38 (File : File_Type;
39 Buf : out Wide_Wide_String;
40 Buflen : out Natural);
41 -- Reads an enumeration literal value from the file, folds to upper case,
42 -- and stores the result in Buf, setting Buflen to the number of stored
43 -- characters (Buf has a lower bound of 1). If more than Buflen characters
44 -- are present in the literal, Data_Error is raised.
46 procedure Scan_Enum_Lit
47 (From : Wide_Wide_String;
48 Start : out Natural;
49 Stop : out Natural);
50 -- Scans an enumeration literal at the start of From, skipping any leading
51 -- spaces. Sets Start to the first character, Stop to the last character.
52 -- Raises End_Error if no enumeration literal is found.
54 procedure Put
55 (File : File_Type;
56 Item : Wide_Wide_String;
57 Width : Field;
58 Set : Type_Set);
59 -- Outputs the enumeration literal image stored in Item to the given File,
60 -- using the given Width and Set parameters (Item is always in upper case).
62 procedure Puts
63 (To : out Wide_Wide_String;
64 Item : Wide_Wide_String;
65 Set : Type_Set);
66 -- Stores the enumeration literal image stored in Item to the string To,
67 -- padding with trailing spaces if necessary to fill To. Set is used to
69 end Ada.Wide_Wide_Text_IO.Enumeration_Aux;