]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/libgnat/a-swuwti.ads
[Ada] Bump copyright year
[thirdparty/gcc.git] / gcc / ada / libgnat / a-swuwti.ads
CommitLineData
d23b8f57
RK
1------------------------------------------------------------------------------
2-- --
3084fecd 3-- GNAT RUN-TIME COMPONENTS --
d23b8f57
RK
4-- --
5-- ADA.STRINGS.WIDE_UNBOUNDED.WIDE_TEXT_IO --
6-- --
7-- S p e c --
8-- --
4b490c1e 9-- Copyright (C) 1997-2020, Free Software Foundation, Inc. --
d23b8f57
RK
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- --
748086b7 13-- ware Foundation; either version 3, or (at your option) any later ver- --
d23b8f57
RK
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 --
748086b7
JJ
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/>. --
d23b8f57
RK
26-- --
27-- GNAT was originally developed by the GNAT team at New York University. --
71ff80dc 28-- Extensive contributions were provided by Ada Core Technologies Inc. --
d23b8f57
RK
29-- --
30------------------------------------------------------------------------------
31
32-- This child package of Ada.Strings.Wide_Unbounded provides specialized
82c80734
RD
33-- Wide_Text_IO routines that work directly with unbounded wide strings,
34-- avoiding the inefficiencies of access via the standard interface, and also
35-- taking direct advantage of the variable length semantics of these strings.
d23b8f57
RK
36
37with Ada.Wide_Text_IO;
38
39package Ada.Strings.Wide_Unbounded.Wide_Text_IO is
40
41 function Get_Line
42 return Unbounded_Wide_String;
43 function Get_Line
82c80734 44 (File : Ada.Wide_Text_IO.File_Type) return Unbounded_Wide_String;
d23b8f57
RK
45 -- Reads up to the end of the current line, returning the result
46 -- as an unbounded string of appropriate length. If no File parameter
47 -- is present, input is from Current_Input.
48
82c80734
RD
49 procedure Get_Line
50 (File : Ada.Wide_Text_IO.File_Type;
51 Item : out Unbounded_Wide_String);
52 procedure Get_Line (Item : out Unbounded_Wide_String);
53 -- Similar to the above, but in procedure form with an out parameter
54
d23b8f57
RK
55 procedure Put
56 (U : Unbounded_Wide_String);
57 procedure Put
58 (File : Ada.Wide_Text_IO.File_Type;
59 U : Unbounded_Wide_String);
60 procedure Put_Line
61 (U : Unbounded_Wide_String);
62 procedure Put_Line
63 (File : Ada.Wide_Text_IO.File_Type;
64 U : Unbounded_Wide_String);
65 -- These are equivalent to the standard Wide_Text_IO routines passed the
66 -- value To_Wide_String (U), but operate more efficiently, because the
67 -- extra copy of the argument is avoided.
68
69end Ada.Strings.Wide_Unbounded.Wide_Text_IO;