DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 1225 (0x4c9) Types: TextFile Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧ └─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04 └─ ⟦d65440be7⟧ »DATA« └─⟦this⟧
package body Standard_String is Vide : constant Natural := 0; procedure Add_Char (A_String : in out Object; A_Char : Character) is New_Length : Natural; begin New_Length := A_String.The_Length + 1; A_String.The_Length := New_Length; A_String.The_Contents (New_Length) := A_Char; end Add_Char; procedure Reset (A_String : in out Object) is begin A_String.The_Length := Vide; end Reset; function Length (A_String : Object) return Natural is begin return Natural (A_String.The_Length); end Length; function Get_Contents (A_String : Object) return String is begin return String (A_String.The_Contents (1 .. A_String.The_Length)); end Get_Contents; function "=" (Left, Rigth : Object) return Boolean is begin if Left.The_Length /= Rigth.The_Length then return False; else return Left.The_Contents = Rigth.The_Contents; end if; end "="; procedure Put_Contents (A_String : in out Object; S : String) is begin A_String.The_Contents (1 .. S'Last) := S; A_String.The_Length := S'Length; end Put_Contents; end Standard_String;