DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦8ef2d5864⟧ TextFile

    Length: 2166 (0x876)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with My_String;
--with Socket_Port;
with Text_Io;

procedure Test_Str is
    S1 : My_String.Object;
    S2 : My_String.Object;
    S3 : My_String.Object;
    Cte : constant String := "1";
    Cte2 : constant String := "12";

--    Sp1 : Socket_Port.Object;

    procedure Cmps (S1, S2 : My_String.Object) is
    begin
        if My_String."=" (S1, S2) then
            Text_Io.Put_Line ("identiques");
        else
            Text_Io.Put_Line ("non identiques");
        end if;

    end Cmps;

    procedure Test2 (Ps : My_String.Object) is
        S3 : My_String.Object;
    begin

        -- S3 := My_String.Object'(The_Size => 2,
        --                         The_String => Ps.The_String (4 .. 5));


        S3 := My_String.Object'(The_Size => 2, The_String => (others => ' '));
        S3.The_String := Ps.The_String (4 .. 5);



        Text_Io.Put_Line ("ps : " & S3.The_String);
    end Test2;

    function Test3 return My_String.Object is
        Cst : constant String :=
           "jhdgsfjsdhfkjsdhfkdshvfnsdhkvdsyhdfnhbvtsrhtdgndfyxcbsdkjtdsjtbt;dtndftjfxcfgabcd";
        The_Result : My_String.Object;
    begin
        The_Result := My_String.Object'(The_Size => Cst'Length,  
                                        The_String => (others => ' '));  
        The_Result.The_String := Cst;
        return The_Result;
    end Test3;

begin

    Text_Io.Put_Line ("cte : " & Integer'Image (Cte'Size));
    Text_Io.Put_Line ("cte : " & Integer'Image (Cte2'Size));

    Text_Io.Put_Line ("Size1 : " & Integer'Image (S1'Size));


    S1 := My_String.Object'(The_Size => 11, The_String => "..belladone");
    S2 := My_String.Object'(The_Size => 9, The_String => "belladone");
    Text_Io.Put_Line ("Size1 : " & Integer'Image (S1'Size));

--    Test2 (S1);
    Test2 (S2);


    S3 := Test3;
    Text_Io.Put_Line ("s3 : " & S3.The_String);

    Cmps (S1, S2);

    S1 := S2;
    Text_Io.Put_Line (S1.The_String);
    Cmps (S1, S2);

    S3 := My_String."&" (S1, S2);
    Text_Io.Put_Line (S3.The_String);

--    Sp1 := Socket_Port.Create (1111);
--    S3 := Socket_Port.Image (Sp1);
    Text_Io.Put_Line (S3.The_String);

end Test_Str;



pragma Main;