|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Associations_Generic_Enumerated_To_String, seg_00466d
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
--| @SUMMARY This generic provides the ability to associate an enumerated
--| type with strings.
--|
--| @INDICES (Text_Processing, Utility)
--|
with Lines;
generic
type Keys is (<>);
Associations_File : String;
Separator : Character := '|';
package Associations_Generic_Enumerated_To_String is
--| @SUMMARY Returns True iff the specified string is associated with
--| the specified key.
--|
function Is_Associated (This_String : in String;
With_This_Key : in Keys;
Ignore_Case : in Boolean := True) return Boolean;
--| @SUMMARY Adds the specified string to the list of strings associated
--| with the specified key.
--|
--| @RAISES "Bad_Entry" (if the specified string contains a separator,
--| or if it is null).
--|
--| @SPECIAL_NOTES If "Unique" is True, removes any pre-existing
--| association of the specified string from all other keys.
--|
procedure Associate (This_String : in String;
With_This_Key : in Keys;
Unique : in Boolean := False;
Ignore_Case : in Boolean := True);
--| @SUMMARY Removes the specified string from the list of strings
--| associated with the specified key.
--|
procedure Dissociate (This_String : in String;
From_This_Key : in Keys;
Ignore_Case : in Boolean := True);
subtype Strings is Lines.Iterator;
--| @SUMMARY Returns an iterator of strings associated with the
--| specified key.
--|
function Strings_Associated_With
(This_Key : in Keys; Ignore_Case : in Boolean := True)
return Strings;
Bad_Entry : exception;
Io_Failure : exception;
end Associations_Generic_Enumerated_To_String;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=20 rec1=00 rec2=01 rec3=060
[0x01] rec0=1b rec1=00 rec2=02 rec3=000
tail 0x2150045da815c665faae2 0x42a00088462061e03