Overview  Index  Help 
Standard ML Basis Library

NumScan


structure NumScan : sig
                      val scanWord
                          : StringCvt.radix ->
                              (char, 'a) StringCvt.reader ->
                                (Word32.word, 'a) StringCvt.reader
                      val scanInt
                          : StringCvt.radix ->
                              (char, 'a) StringCvt.reader ->
                                (Int32.int, 'a) StringCvt.reader
                      val scanReal
                          : (char, 'a) StringCvt.reader ->
                              (real, 'a) StringCvt.reader
                    end =
struct
  structure W = InlineT.Word32
  structure I = InlineT.Int31
  structure I32 = InlineT.Int32
  structure R = InlineT.Real64
  type word = Word32.word
  type prefix_pat =
       {wOkay : bool, xOkay : bool, ptOkay : bool, isDigit : word -> bool}
  val <
  val >=
  val +
  val -
  val *
  val largestWordDiv10
  val largestWordMod10
  val largestNegInt32
  val largestPosInt32
  val minInt32
  val code
  val wsCode
  val plusCode
  val minusCode
  val ptCode
  val eCode
  val wCode
  val xCode
  val scanPrefix
  val chkOverflow
  val isBinDigit
  val isOctDigit
  val isDecDigit
  val isHexDigit
  val binPat
  val octPat
  val hexPat
  val decPat
  val scanBin
  val scanOct
  val scanDec
  val scanHex
  val finalWord
  val scanWord
      : StringCvt.radix ->
          (char, 'a) StringCvt.reader -> (Word32.word, 'a) StringCvt.reader
  val finalInt
  val scanInt
      : StringCvt.radix ->
          (char, 'a) StringCvt.reader -> (Int32.int, 'a) StringCvt.reader
  val fscan10
  val scaleUp
  val scaleDown
  val scanReal : (char, 'a) StringCvt.reader -> (real, 'a) StringCvt.reader
end

 
Type detail

word

type word = Word32.word


prefix_pat

type prefix_pat =
     {wOkay : bool, xOkay : bool, ptOkay : bool, isDigit : word -> bool}

     
Value detail

<

val <


>=

val >=


+

val +


-

val -


*

val *


largestWordDiv10

val largestWordDiv10


largestWordMod10

val largestWordMod10


largestNegInt32

val largestNegInt32


largestPosInt32

val largestPosInt32


minInt32

val minInt32


code

val code


wsCode

val wsCode


plusCode

val plusCode


minusCode

val minusCode


ptCode

val ptCode


eCode

val eCode


wCode

val wCode


xCode

val xCode


scanPrefix

val scanPrefix


chkOverflow

val chkOverflow


isBinDigit

val isBinDigit


isOctDigit

val isOctDigit


isDecDigit

val isDecDigit


isHexDigit

val isHexDigit


binPat

val binPat


octPat

val octPat


hexPat

val hexPat


decPat

val decPat


scanBin

val scanBin


scanOct

val scanOct


scanDec

val scanDec


scanHex

val scanHex


finalWord

val finalWord


scanWord

val scanWord
    : StringCvt.radix ->
        (char, 'a) StringCvt.reader -> (Word32.word, 'a) StringCvt.reader


finalInt

val finalInt


scanInt

val scanInt
    : StringCvt.radix ->
        (char, 'a) StringCvt.reader -> (Int32.int, 'a) StringCvt.reader


fscan10

val fscan10


scaleUp

val scaleUp


scaleDown

val scaleDown


scanReal

val scanReal : (char, 'a) StringCvt.reader -> (real, 'a) StringCvt.reader

 


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).