1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . S T R I N G S . F I X E D --
9 -- $Revision: 1.10 $ --
11 -- Copyright (C) 1992-1997 Free Software Foundation, Inc. --
13 -- This specification is derived from the Ada Reference Manual for use with --
14 -- GNAT. The copyright notice above, and the license provisions that follow --
15 -- apply solely to the contents of the part following the private keyword. --
17 -- GNAT is free software; you can redistribute it and/or modify it under --
18 -- terms of the GNU General Public License as published by the Free Soft- --
19 -- ware Foundation; either version 2, or (at your option) any later ver- --
20 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
21 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
22 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
23 -- for more details. You should have received a copy of the GNU General --
24 -- Public License distributed with GNAT; see file COPYING. If not, write --
25 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
26 -- MA 02111-1307, USA. --
28 -- As a special exception, if other files instantiate generics from this --
29 -- unit, or you link this unit with other files to produce an executable, --
30 -- this unit does not by itself cause the resulting executable to be --
31 -- covered by the GNU General Public License. This exception does not --
32 -- however invalidate any other reasons why the executable file might be --
33 -- covered by the GNU Public License. --
35 -- GNAT was originally developed by the GNAT team at New York University. --
36 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
38 ------------------------------------------------------------------------------
41 with Ada.Strings.Maps;
43 package Ada.Strings.Fixed is
44 pragma Preelaborate (Fixed);
46 --------------------------------------------------------------
47 -- Copy Procedure for Strings of Possibly Different Lengths --
48 --------------------------------------------------------------
53 Drop : in Truncation := Error;
54 Justify : in Alignment := Left;
55 Pad : in Character := Space);
57 ------------------------
58 -- Search Subprograms --
59 ------------------------
64 Going : in Direction := Forward;
65 Mapping : in Maps.Character_Mapping := Maps.Identity)
71 Going : in Direction := Forward;
72 Mapping : in Maps.Character_Mapping_Function)
77 Set : in Maps.Character_Set;
78 Test : in Membership := Inside;
79 Going : in Direction := Forward)
82 function Index_Non_Blank
84 Going : in Direction := Forward)
90 Mapping : in Maps.Character_Mapping := Maps.Identity)
96 Mapping : in Maps.Character_Mapping_Function)
101 Set : in Maps.Character_Set)
106 Set : in Maps.Character_Set;
107 Test : in Membership;
108 First : out Positive;
111 ------------------------------------
112 -- String Translation Subprograms --
113 ------------------------------------
117 Mapping : in Maps.Character_Mapping)
121 (Source : in out String;
122 Mapping : in Maps.Character_Mapping);
126 Mapping : in Maps.Character_Mapping_Function)
130 (Source : in out String;
131 Mapping : in Maps.Character_Mapping_Function);
133 ---------------------------------------
134 -- String Transformation Subprograms --
135 ---------------------------------------
137 function Replace_Slice
144 procedure Replace_Slice
145 (Source : in out String;
149 Drop : in Truncation := Error;
150 Justify : in Alignment := Left;
151 Pad : in Character := Space);
155 Before : in Positive;
156 New_Item : in String)
160 (Source : in out String;
161 Before : in Positive;
162 New_Item : in String;
163 Drop : in Truncation := Error);
167 Position : in Positive;
168 New_Item : in String)
172 (Source : in out String;
173 Position : in Positive;
174 New_Item : in String;
175 Drop : in Truncation := Right);
180 Through : in Natural)
184 (Source : in out String;
186 Through : in Natural;
187 Justify : in Alignment := Left;
188 Pad : in Character := Space);
190 ---------------------------------
191 -- String Selector Subprograms --
192 ---------------------------------
200 (Source : in out String;
202 Justify : in Alignment := Left;
203 Pad : in Character := Space);
207 Left : in Maps.Character_Set;
208 Right : in Maps.Character_Set)
212 (Source : in out String;
213 Left : in Maps.Character_Set;
214 Right : in Maps.Character_Set;
215 Justify : in Alignment := Strings.Left;
216 Pad : in Character := Space);
221 Pad : in Character := Space)
225 (Source : in out String;
227 Justify : in Alignment := Left;
228 Pad : in Character := Space);
233 Pad : in Character := Space)
237 (Source : in out String;
239 Justify : in Alignment := Left;
240 Pad : in Character := Space);
242 ----------------------------------
243 -- String Constructor Functions --
244 ----------------------------------
248 Right : in Character)
256 end Ada.Strings.Fixed;