DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦c6040d2dd⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Standard_String, seg_02f2e4

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



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;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=22 rec1=00 rec2=01 rec3=03a
        [0x01] rec0=0b rec1=00 rec2=02 rec3=001
    tail 0x217276f3284843ec1c370 0x42a00088462060003