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

⟦d8f31ed83⟧ Ada Source

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

Derivation

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

E3 Source Code



with Text_Io;
package body Bounded_String is

    procedure Free (The_String : in out Variable_String) is
    begin
        The_String.The_Length := Void;
    end Free;

    procedure Append (Target : in out Variable_String; Source : in Character) is
    begin
        if (Target.The_Length < Target.The_Content'Last) then
            Target.The_Length := Target.The_Length + 1;
            Target.The_Content (Target.The_Length) := Source;
        end if;
    end Append;

    procedure Set (The_String : in out Variable_String;
                   With_String : in String) is
    begin
        if (With_String'Last <= The_String.The_Content'Last) then
            The_String.The_Length := With_String'Length;
            The_String.The_Content (With_String'Range) :=
               With_String (With_String'Range);
        else
            The_String.The_Length := The_String.The_Content'Length;
            The_String.The_Content (The_String.The_Content'Range) :=
               With_String (The_String.The_Content'Range);
        end if;
    end Set;

    procedure Copy (The_String : in out Variable_String;
                    With_String : in String) is
    begin
        if (With_String'Last <= The_String.The_Content'Last) then
            The_String.The_Length := With_String'Length;
            The_String.The_Content (With_String'Range) :=
               With_String (With_String'Range);
        else
            The_String.The_Length := The_String.The_Content'Length;
            The_String.The_Content (The_String.The_Content'Range) :=
               With_String (The_String.The_Content'Range);
        end if;
    end Copy;

    function Image (From_The_String : in Variable_String) return String is
    begin
        return (From_The_String.The_Content (1 .. From_The_String.The_Length));
    end Image;

end Bounded_String;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1b rec1=00 rec2=01 rec3=086
        [0x01] rec0=19 rec1=00 rec2=02 rec3=001
    tail 0x2174130a486126df11cbc 0x42a00088462060003