mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-25 12:41:01 +08:00
a-stzunb.adb, [...]: (Insert): Use 'Length instead of 'Size.
2007-04-20 Arnaud Charlet <charlet@adacore.com> * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length instead of 'Size. * a-stwifi.ads, a-stzfix.ads: Minor reformatting From-SVN: r125378
This commit is contained in:
parent
39f4e199a5
commit
dc1f64ac92
@ -6,7 +6,7 @@
|
||||
-- --
|
||||
-- B o d y --
|
||||
-- --
|
||||
-- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
|
||||
-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
|
||||
-- --
|
||||
-- GNAT is free software; you can redistribute it and/or modify it under --
|
||||
-- terms of the GNU General Public License as published by the Free Soft- --
|
||||
@ -690,7 +690,7 @@ package body Ada.Strings.Unbounded is
|
||||
raise Index_Error;
|
||||
end if;
|
||||
|
||||
Realloc_For_Chunk (Source, New_Item'Size);
|
||||
Realloc_For_Chunk (Source, New_Item'Length);
|
||||
|
||||
Source.Reference
|
||||
(Before + New_Item'Length .. Source.Last + New_Item'Length) :=
|
||||
|
@ -225,10 +225,10 @@ package Ada.Strings.Wide_Fixed is
|
||||
Pad : Wide_Character := Ada.Strings.Wide_Space) return Wide_String;
|
||||
|
||||
procedure Tail
|
||||
(Source : in out Wide_String;
|
||||
Count : Natural;
|
||||
(Source : in out Wide_String;
|
||||
Count : Natural;
|
||||
Justify : Alignment := Left;
|
||||
Pad : Wide_Character := Ada.Strings.Wide_Space);
|
||||
Pad : Wide_Character := Ada.Strings.Wide_Space);
|
||||
|
||||
---------------------------------------
|
||||
-- Wide_String Constructor Functions --
|
||||
|
@ -706,7 +706,7 @@ package body Ada.Strings.Wide_Unbounded is
|
||||
raise Index_Error;
|
||||
end if;
|
||||
|
||||
Realloc_For_Chunk (Source, New_Item'Size);
|
||||
Realloc_For_Chunk (Source, New_Item'Length);
|
||||
|
||||
Source.Reference
|
||||
(Before + New_Item'Length .. Source.Last + New_Item'Length) :=
|
||||
|
@ -235,10 +235,10 @@ package Ada.Strings.Wide_Wide_Fixed is
|
||||
return Wide_Wide_String;
|
||||
|
||||
procedure Tail
|
||||
(Source : in out Wide_Wide_String;
|
||||
Count : Natural;
|
||||
(Source : in out Wide_Wide_String;
|
||||
Count : Natural;
|
||||
Justify : Alignment := Left;
|
||||
Pad : Wide_Wide_Character := Ada.Strings.Wide_Wide_Space);
|
||||
Pad : Wide_Wide_Character := Ada.Strings.Wide_Wide_Space);
|
||||
|
||||
--------------------------------------------
|
||||
-- Wide_Wide_String Constructor Functions --
|
||||
|
@ -717,7 +717,7 @@ package body Ada.Strings.Wide_Wide_Unbounded is
|
||||
raise Index_Error;
|
||||
end if;
|
||||
|
||||
Realloc_For_Chunk (Source, New_Item'Size);
|
||||
Realloc_For_Chunk (Source, New_Item'Length);
|
||||
|
||||
Source.Reference
|
||||
(Before + New_Item'Length .. Source.Last + New_Item'Length) :=
|
||||
|
Loading…
x
Reference in New Issue
Block a user