a-stzunb.adb, [...]: (Insert): Use 'Length instead of 'Size.
authorArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:20:30 +0000 (12:20 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:20:30 +0000 (12:20 +0200)
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

gcc/ada/a-strunb.adb
gcc/ada/a-stwifi.ads
gcc/ada/a-stwiun.adb
gcc/ada/a-stzfix.ads
gcc/ada/a-stzunb.adb

index 34720704a36af3cd8638f4c6a601f3f777347039..8e9b9749f68e55ec44d46c82231172cf0bbc3bde 100644 (file)
@@ -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) :=
index 5d9ea3f584d3689ae16a46fe79ecdd334f0db1fc..8f3cf399fa8c1fea7baa94102bb24addf695ae64 100644 (file)
@@ -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 --
index 45ab546a3c25944082e71530eca2911e709acff4..c9c42f011f399e13392c5c1b2d126470e1570b81 100644 (file)
@@ -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) :=
index 4c3f80b4bdbdacfb0a3b2905ea9b149d07dcfdd5..f6b313598d664425a698d61f459aa6ce58ef3074 100644 (file)
@@ -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 --
index 7f4c54a94c34b1b1bc920c5821e1ca63008e21ed..e3123bc2559ffd0b00de7079d82efdcc1034afc9 100644 (file)
@@ -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) :=