The ControlUtil
structure provides some utility functions
for defining controls.
Synopsis
signature CONTROL_UTIL
structure ControlUtil : CONTROL_UTIL
Interface
structure Cvt : sig
val int : int Controls.value_cvt
val bool : bool Controls.value_cvt
val real : real Controls.value_cvt
val stringList : string list Controls.value_cvt
val string : string Controls.value_cvt
end
structure EnvName : sig
val toUpper : string -> string -> string
end
Description
structure Cvt
The ControlUtil.Cvt
structure provides some common value-conversion
functions.
val int : int Controls.value_cvt
-
A value converter for the
int
type. val bool : bool Controls.value_cvt
-
A value converter for the
bool
type. This converter is case-insensitive, and accepts"yes"
fortrue
and"no"
forfalse
. val real : real Controls.value_cvt
-
A value converter for the
real
type. val stringList : string list Controls.value_cvt
-
A value converter for the comma-separated lists of strings.
val string : string Controls.value_cvt
-
A value converter for the
string
type. This converter is just the identity.
structure EnvName
val toUpper : string -> string -> string
-
toUpper prefix s
returns the stringprefix ^ s'
, wheres'
is the strings
with lower-case letters converted to upper-case and any occurrences of the minus character converted to the underscore character.