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

⟦946722c66⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Placeholder_Replacement_Generic, seg_0046e5

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



--| @SUMMARY This package searches through a file, replacing every occurrence of
--| "placeholders" with strings defined by the client.
--|
--| @DESCRIPTION Placeholders are strings delimited by a placeholder start
--| character (default is '<') and a placeholder finish indicator (default
--| is '>'). The placeholder image must match one of the enumeration literals
--| defined by the client.
--|
--| Two placeholder start characters in a row escape replacement of the
--| following placeholder.
--|
--| Placeholders cannot span line breaks (if a line break is encountered
--| before a placeholder finish character, the current placeholder will not
--| be replaced).
--|
--| @INDICES (Text_Processing, Utility)
--|
generic

    type Placeholders is (<>);

    with function Replacement_For
                     (This_Placeholder : in Placeholders) return String;

    Placeholder_Start_Indicator  : Character := '<';
    Placeholder_Finish_Indicator : Character := '>';

package Placeholder_Replacement_Generic is

    --| @SUMMARY Replaces the placeholders in the specified files.
    --|
    --| @RAISES Io_Failure (if difficulty is encountered opening, reading from,
    --| writing to, or closing one of the specified files).
    --|
    procedure Replace_Placeholders_In (These_Files : in String);

    Io_Failure : exception;

end Placeholder_Replacement_Generic;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1b rec1=00 rec2=01 rec3=05a
        [0x01] rec0=0e rec1=00 rec2=02 rec3=000
    tail 0x215004d0c815c674af47e 0x42a00088462061e03