Overview  Index  Help 
Standard ML Basis Library

StringCvt


structure StringCvt : STRING_CVT =
struct
  type ('a, 'b) reader = 'b -> ('a * 'b) option
  type cs = int
  datatype radix = BIN | OCT | DEC | HEX
  datatype realfmt =
           EXACT | SCI of int option | FIX of int option | GEN of int option
  val +
  val -
  val <
  val >
  val padLeft : char -> int -> string -> string
  val padRight : char -> int -> string -> string
  val revImplode
  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 : ((charcsreader -> ('a, csreader) -> string -> 'a option
end

 
Type detail

reader

type ('a, 'b) reader = 'b -> ('a * 'b) option


cs

type cs = int

 
Datatype detail

radix

datatype radix = BIN | OCT | DEC | HEX


realfmt

datatype realfmt =
         EXACT | SCI of int option | FIX of int option | GEN of int option

 
DataConstructor detail

BIN

constructor BIN : radix


OCT

constructor OCT : radix


DEC

constructor DEC : radix


HEX

constructor HEX : radix


EXACT

constructor EXACT : realfmt


SCI

constructor SCI : int option -> realfmt


FIX

constructor FIX : int option -> realfmt


GEN

constructor GEN : int option -> realfmt

 
Value detail

+

val +


-

val -


<

val <


>

val >


padLeft

val padLeft : char -> int -> string -> string


padRight

val padRight : char -> int -> string -> string


revImplode

val revImplode


splitl

val splitl : (char -> bool) -> (char, 'a) reader -> 'a -> string * 'a


takel

val takel : (char -> bool) -> (char, 'a) reader -> 'a -> string


dropl

val dropl : (char -> bool) -> (char, 'a) reader -> 'a -> 'a


skipWS

val skipWS : (char, 'a) reader -> 'a -> 'a


scanString

val scanString : ((charcsreader -> ('a, csreader) -> string -> 'a option

 


Overview  Index  Help 
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).