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: ┃ T V ┃
Length: 3793 (0xed1) Types: TextFile Names: »V«
└─⟦d10a02448⟧ Bits:30000409 8mm tape, Rational 1000, ENVIRONMENT, D_12_7_3 └─ ⟦fc9b38f02⟧ »DATA« └─⟦9b46a407a⟧ └─⟦12c68c704⟧ └─⟦this⟧ └─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS └─ ⟦91c658230⟧ »DATA« └─⟦458657fb6⟧ └─⟦220843204⟧ └─⟦this⟧
package Bounded_String is pragma Subsystem (Tools, Private_Part => Open); pragma Module_Name (4, 3976); subtype String_Length is Natural; type Variable_String (Maximum_Length : String_Length) is private; -- initialized to have a length of 0 procedure Copy (Target : in out Variable_String; Source : Variable_String); procedure Copy (Target : in out Variable_String; Source : String); procedure Copy (Target : in out Variable_String; Source : Character); procedure Move (Target : in out Variable_String; Source : in out Variable_String); function Image (V : Variable_String) return String; -- Value function with maximum length = current length function Value (S : String) return Variable_String; -- Value function with specified maximum length function Value (S : String; Max_Length : Natural) return Variable_String; procedure Free (V : in out Variable_String); procedure Append (Target : in out Variable_String; Source : Variable_String); procedure Append (Target : in out Variable_String; Source : String); procedure Append (Target : in out Variable_String; Source : Character); procedure Append (Target : in out Variable_String; Source : Character; Count : Natural); procedure Insert (Target : in out Variable_String; At_Pos : Positive; Source : Variable_String); procedure Insert (Target : in out Variable_String; At_Pos : Positive; Source : String); procedure Insert (Target : in out Variable_String; At_Pos : Positive; Source : Character); procedure Insert (Target : in out Variable_String; At_Pos : Positive; Source : Character; Count : Natural); procedure Delete (Target : in out Variable_String; At_Pos : Positive; Count : Natural := 1); procedure Replace (Target : in out Variable_String; At_Pos : Positive; Source : Character); procedure Replace (Target : in out Variable_String; At_Pos : Positive; Source : Character; Count : Natural); procedure Replace (Target : in out Variable_String; At_Pos : Positive; Source : String); procedure Replace (Target : in out Variable_String; At_Pos : Positive; Source : Variable_String); procedure Set_Length (Target : in out Variable_String; New_Length : Natural; Fill_With : Character := ' '); -- Truncate or extend with fill function Length (Source : Variable_String) return Natural; -- Get information about or contents of a string function Char_At (Source : Variable_String; At_Pos : Positive) return Character; function Extract (Source : Variable_String; Start_Pos : Positive; End_Pos : Natural) return String; function Max_Length (Source : Variable_String) return Natural; -- get the allocated length of the string private type Variable_String (Maximum_Length : String_Length) is record Length : String_Length := 0; Contents : String (1 .. Maximum_Length); end record; end Bounded_String;