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

⟦8e73455f4⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Vstring_Case, seg_005835

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



with Arithmetic;
use Arithmetic;
with Vstring_Type;
use Vstring_Type;

package body Vstring_Case is
------------------------------------------------------------------------------
-- VString Case Conversion Routines
------------------------------------------------------------------------------
-- Copyright 1988 - 1991 by Rational, Santa Clara, California.
--
--                  All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the name of Rational not be used in
-- advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- Rational disclaims all warranties with regard to this software, including
-- all implied warranties of merchantability and fitness, in no event shall
-- Rational be liable for any special, indirect or consequential damages or
-- any damages whatsoever resulting from loss of use, data or profits, whether
-- in an action of contract, negligence or other tortious action, arising out
-- of or in connection with the use or performance of this software.
------------------------------------------------------------------------------

--\x0c
    procedure Upper_Case (Vstr : in out Vstring_Data) is
    begin
        for I in reverse 1 .. Vstr.Length loop
            Vstr.Chars (I) := Uc_Char (Vstr.Chars (I));
        end loop;
    end Upper_Case;

--\x0c
    procedure Upper_Case (Vstr : Vstring) is
    begin
        for I in reverse 1 .. Vstr.Length loop
            Vstr.Chars (I) := Uc_Char (Vstr.Chars (I));
        end loop;
    end Upper_Case;

--\x0c
    procedure Lower_Case (Vstr : in out Vstring_Data) is
    begin
        for I in reverse 1 .. Vstr.Length loop
            Vstr.Chars (I) := Lc_Char (Vstr.Chars (I));
        end loop;
    end Lower_Case;

--\x0c
    procedure Lower_Case (Vstr : Vstring) is
    begin
        for I in reverse 1 .. Vstr.Length loop
            Vstr.Chars (I) := Lc_Char (Vstr.Chars (I));
        end loop;
    end Lower_Case;

--\x0c
    function Upper_Case (Str : E_String) return E_String is
        Str2 : E_String (1 .. Str'Length);
    begin
        for I in reverse S_Natural range 0 .. Str2'Last - 1 loop
            Str2 (I + 1) := Uc_Char (Str (I + Str'First));
        end loop;
        return Str2;
    end Upper_Case;

--\x0c
    procedure Upper_Case (Str : in out E_String) is
    begin
        for I in reverse Str'Range loop
            Str (I) := Uc_Char (Str (I));
        end loop;
    end Upper_Case;

--\x0c
    function Lower_Case (Str : E_String) return E_String is
        Str2 : E_String (1 .. Str'Length);
    begin
        for I in reverse S_Natural range 0 .. Str2'Last - 1 loop
            Str2 (I + 1) := Lc_Char (Str (I + Str'First));
        end loop;
        return Str2;
    end Lower_Case;

--\x0c
    procedure Lower_Case (Str : in out E_String) is
    begin
        for I in reverse Str'Range loop
            Str (I) := Uc_Char (Str (I));
        end loop;
    end Lower_Case;

--\x0c
end Vstring_Case;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=18 rec1=00 rec2=01 rec3=00c
        [0x01] rec0=1a rec1=00 rec2=02 rec3=038
        [0x02] rec0=23 rec1=00 rec2=03 rec3=036
        [0x03] rec0=10 rec1=00 rec2=04 rec3=001
    tail 0x21500aed481978efbe518 0x42a00088462063203