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

⟦9137dc294⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package String_Utilities, pragma Module_Name 4 303, pragma Subsystem Tools, seg_006453

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 String_Utilities is

    function Hash_String (S : String) return Integer;

    procedure Upper_Case (C : in out Character);
    procedure Lower_Case (C : in out Character);

    function Upper_Case (C : Character) return Character;
    function Lower_Case (C : Character) return Character;

    procedure Upper_Case (S : in out String);
    procedure Lower_Case (S : in out String);

    -- string returned has same 'First and 'Last as S
    function Upper_Case (S : String) return String;
    function Lower_Case (S : String) return String;



    function Number_To_String (Value   : Integer;
                               Base    : Natural   := 10;
                               Width   : Natural   := 0;
                               Leading : Character := ' ') return String;

    function Number_To_String (Value   : Long_Integer;
                               Base    : Natural   := 10;
                               Width   : Natural   := 0;
                               Leading : Character := ' ') return String;

    procedure String_To_Number (Source :     String;
                                Target : out Integer;
                                Worked : out Boolean;
                                Base   :     Natural := 10);

    procedure String_To_Number (Source :     String;
                                Target : out Long_Integer;
                                Worked : out Boolean;
                                Base   :     Natural := 10);

    function Strip_Leading
                (From : String; Filler : Character := ' ')    return String;
    function Strip_Trailing
                (From : String; Filler : Character := ' ')    return String;
    function Strip (From : String; Filler : Character := ' ') return String;

    -- Searches and compares
    -- Locate returns the index value in Within if found, 0 otherwise
    function Locate (Fragment    : String;
                     Within      : String;
                     Ignore_Case : Boolean := True) return Natural;

    function Locate (Fragment    : Character;
                     Within      : String;
                     Ignore_Case : Boolean := True) return Natural;

    function Reverse_Locate (Fragment    : String;
                             Within      : String;
                             Ignore_Case : Boolean := True) return Natural;

    function Reverse_Locate (Fragment    : Character;
                             Within      : String;
                             Ignore_Case : Boolean := True) return Natural;

    function Equal (Str1 : String; Str2 : String; Ignore_Case : Boolean := True)
                   return Boolean;

    function Less_Than
                (Str1 : String; Str2 : String; Ignore_Case : Boolean := True)
                return Boolean;

    function Greater_Than
                (Str1 : String; Str2 : String; Ignore_Case : Boolean := True)
                return Boolean;

    procedure Capitalize (S : in out String);
    function  Capitalize (S : String) return String;

    pragma Subsystem (Tools);
    pragma Module_Name (4, 303);

end String_Utilities;

E3 Meta Data

    nblk1=5
    nid=0
    hdr6=a
        [0x00] rec0=1c rec1=00 rec2=01 rec3=06e
        [0x01] rec0=16 rec1=00 rec2=02 rec3=020
        [0x02] rec0=00 rec1=00 rec2=05 rec3=00c
        [0x03] rec0=18 rec1=00 rec2=03 rec3=00a
        [0x04] rec0=09 rec1=00 rec2=04 rec3=000
    tail 0x21501457e81bf827f1bfc 0x42a00088462065003