Package: Ada.Strings.Wide_Unbounded.Wide_Text_IO

Dependencies

with Ada.Wide_Text_IO;

Description

This child package of Ada.Strings.Wide_Unbounded provides specialized Text_IO routines that work directly with unbounded strings, avoiding the inefficiencies of access via the standard interface, and also taking direct advantage of the variable length semantics of these strings.

Header

package Ada.Strings.Wide_Unbounded.Wide_Text_IO is
 

Other Items:

function Get_Line
  return Unbounded_Wide_String;

function Get_Line
  (File : Ada.Wide_Text_IO.File_Type)
   return Unbounded_Wide_String;
Reads up to the end of the current line, returning the result as an unbounded string of appropriate length. If no File parameter is present, input is from Current_Input.

procedure Put
  (U : Unbounded_Wide_String);

procedure Put
  (File : Ada.Wide_Text_IO.File_Type;
   U    : Unbounded_Wide_String);

procedure Put_Line
  (U    : Unbounded_Wide_String);

procedure Put_Line
  (File : Ada.Wide_Text_IO.File_Type;
   U    : Unbounded_Wide_String);
These are equivalent to the standard Wide_Text_IO routines passed the value To_Wide_String (U), but operate more efficiently, because the extra copy of the argument is avoided.
end Ada.Strings.Wide_Unbounded.Wide_Text_IO;