MTMiscOps.mesa
Last Edited by: Nichols, July 13, 1983 5:13 pm
Last Edited by: Taft, February 5, 1984 1:40:48 pm PST
DIRECTORY
Rope: TYPE USING [ROPE];
MTMiscOps: CEDAR DEFINITIONS
~ BEGIN
Types
Table: TYPE ~ LIST OF Rope.ROPE; -- What you give to Lookup.
Procedures
Lookup: PROC [name: Rope.ROPE, table: Table] RETURNS [BOOL];
Returns TRUE if name is in table.
AToI: PROC [r: Rope.ROPE] RETURNS [i: INT];
Convert the leading digits of r into an integer.
IToA: PROC [i: INT] RETURNS [r: Rope.ROPE];
Convert i into a rope.
Substitute: PROC [r: Rope.ROPE, oldChar, newChar: CHAR] RETURNS [newR: Rope.ROPE];
Return r with newChar substituted for every instance of oldChar.
END.