1 |
281 |
jeremybenn |
------------------------------------------------------------------------------
|
2 |
|
|
-- --
|
3 |
|
|
-- GNAT RUN-TIME COMPONENTS --
|
4 |
|
|
-- --
|
5 |
|
|
-- ADA.STRINGS.WIDE_WIDE_UNBOUNDED.WIDE_WIDE_TEXT_IO --
|
6 |
|
|
-- --
|
7 |
|
|
-- S p e c --
|
8 |
|
|
-- --
|
9 |
|
|
-- Copyright (C) 1997-2009, 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 |
|
|
------------------------------------------------------------------------------
|
31 |
|
|
|
32 |
|
|
-- This child package of Ada.Strings.Wide_Wide_Unbounded provides specialized
|
33 |
|
|
-- Wide_Wide_Text_IO routines that work directly with unbounded wide wide
|
34 |
|
|
-- strings, avoiding the inefficiencies of access via the standard interface,
|
35 |
|
|
-- and also taking direct advantage of the variable length semantics of these
|
36 |
|
|
-- strings.
|
37 |
|
|
|
38 |
|
|
with Ada.Wide_Wide_Text_IO;
|
39 |
|
|
|
40 |
|
|
package Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO is
|
41 |
|
|
|
42 |
|
|
function Get_Line
|
43 |
|
|
return Unbounded_Wide_Wide_String;
|
44 |
|
|
function Get_Line
|
45 |
|
|
(File : Ada.Wide_Wide_Text_IO.File_Type)
|
46 |
|
|
return Unbounded_Wide_Wide_String;
|
47 |
|
|
-- Reads up to the end of the current line, returning the result
|
48 |
|
|
-- as an unbounded string of appropriate length. If no File parameter
|
49 |
|
|
-- is present, input is from Current_Input.
|
50 |
|
|
|
51 |
|
|
procedure Get_Line
|
52 |
|
|
(File : Ada.Wide_Wide_Text_IO.File_Type;
|
53 |
|
|
Item : out Unbounded_Wide_Wide_String);
|
54 |
|
|
procedure Get_Line (Item : out Unbounded_Wide_Wide_String);
|
55 |
|
|
-- Similar to the above, but in procedure form with an out parameter
|
56 |
|
|
|
57 |
|
|
procedure Put
|
58 |
|
|
(U : Unbounded_Wide_Wide_String);
|
59 |
|
|
procedure Put
|
60 |
|
|
(File : Ada.Wide_Wide_Text_IO.File_Type;
|
61 |
|
|
U : Unbounded_Wide_Wide_String);
|
62 |
|
|
procedure Put_Line
|
63 |
|
|
(U : Unbounded_Wide_Wide_String);
|
64 |
|
|
procedure Put_Line
|
65 |
|
|
(File : Ada.Wide_Wide_Text_IO.File_Type;
|
66 |
|
|
U : Unbounded_Wide_Wide_String);
|
67 |
|
|
-- These are equivalent to the standard Wide_Wide_Text_IO routines passed
|
68 |
|
|
-- the value To_Wide_Wide_String (U), but operate more efficiently,
|
69 |
|
|
-- because the extra copy of the argument is avoided.
|
70 |
|
|
|
71 |
|
|
end Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO;
|