The procedure in the ZFmt
interface are intended for use
as the ``formatting functions'' in m3zume
event-specification
files. The locking-level on all procedures in this interface
is arbitrary.
INTERFACEZFmt ; PROCEDURE Int (n: INTEGER): TEXT;
ZFmt.Int(n)
returnsFmt.Int(n)
PROCEDURE Bool(b: BOOLEAN): TEXT;
ZFmt.Bool(b)
returnstrue
ifb=TRUE
, andfalse
otherwise
PROCEDURE Char(c: CHAR): TEXT;
ZFmt.Char(c)
returnsFmt.Char(c)
PROCEDURE Real (r: REAL): TEXT;
ZFmt.Real(r)
returnsFmt.Real(r, style := Fmt.Style.Fix, literal := TRUE)
PROCEDURE LongReal (r: LONGREAL): TEXT;
ZFmt.LongReal(r)
returnsFmt.LongReal(r, style := Fmt.Style.Fix, literal := TRUE)
PROCEDURE Text (t: TEXT): TEXT;
ZFmt.Text(t) returns
TextConv.Encode(t)
END ZFmt.