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

⟦8480ae83b⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package String_Run, seg_026568, seg_026d29

Derivation

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

E3 Source Code



-------------------------------------------------------------------------------
package String_Run is


    type Iterator is private;

    procedure Init (Iter : in out Iterator; With_String : String);

    function Next_Done (Iter : Iterator) return Boolean;
    function Done      (Iter : Iterator) return Boolean;

    function Next_Value    (Iter : Iterator)                  return Character;
    function Value         (Iter : Iterator)                  return Character;
    function Current_Index (Iter : Iterator)                  return Natural;
    function Cut           (Iter : Iterator; Index : Natural) return String;
    function Rest          (Iter : Iterator)                  return String;

    procedure Next     (Iter : in out Iterator);
    procedure Previous (Iter : in out Iterator);

-------------------------------------------------------------------------------
private

    subtype Index_Range is Natural range 0 .. 500;

    type Object (First : Index_Range := 1; Last : Index_Range := 20) is
        record
            String : Standard.String (First .. Last) := (others => ' ');
        end record;

    type Iterator is
        record
            Last       : Index_Range;
            Index      : Index_Range;
            The_Object : Object;
        end record;

end String_Run;
-------------------------------------------------------------------------------


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1b rec1=00 rec2=01 rec3=01a
        [0x01] rec0=0f rec1=00 rec2=02 rec3=001
    tail 0x21520437683aa679810c5 0x42a00088462063c03