| Standard ML Basis Library |
signature STRING_CVT =
sig
type ('a, 'b) reader = 'b -> ('a * 'b) option
type cs
datatype radix = BIN | OCT | DEC | HEX
datatype realfmt =
EXACT | SCI of int option | FIX of int option | GEN of int option
val padLeft : char -> int -> string -> string
val padRight : char -> int -> string -> string
val splitl : (char -> bool) -> (char, 'a) reader -> 'a -> string * 'a
val takel : (char -> bool) -> (char, 'a) reader -> 'a -> string
val dropl : (char -> bool) -> (char, 'a) reader -> 'a -> 'a
val skipWS : (char, 'a) reader -> 'a -> 'a
val scanString : ((char, cs) reader -> ('a, cs) reader) -> string -> 'a option
end
Type detail |
---|
type ('a, 'b) reader = 'b -> ('a * 'b) option
type cs
Datatype detail |
---|
datatype radix = BIN | OCT | DEC | HEX
datatype realfmt =
EXACT | SCI of int option | FIX of int option | GEN of int option
DataConstructor detail |
---|
constructor BIN : radix
constructor OCT : radix
constructor DEC : radix
constructor HEX : radix
constructor EXACT : realfmt
constructor SCI : int option -> realfmt
constructor FIX : int option -> realfmt
constructor GEN : int option -> realfmt
Value detail |
---|
val padLeft : char -> int -> string -> string
val padRight : char -> int -> string -> string
val splitl : (char -> bool) -> (char, 'a) reader -> 'a -> string * 'a
val takel : (char -> bool) -> (char, 'a) reader -> 'a -> string
val dropl : (char -> bool) -> (char, 'a) reader -> 'a -> 'a
val skipWS : (char, 'a) reader -> 'a -> 'a
val scanString : ((char, cs) reader -> ('a, cs) reader) -> string -> 'a option
| Standard ML Basis Library |
This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.
Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.
Permission is granted for internet users to make one paper copy for their
own personal use. Further hardcopy reproduction is strictly prohibited.
Permission to distribute the HTML document electronically on any medium
other than the internet must be requested from the copyright holders by
contacting the editors.
Printed versions of the SML Basis Manual are available from Cambridge
University Press.
To order, please visit
www.cup.org (North America) or
www.cup.cam.ac.uk (outside North America). |