Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/FLINT/src/compiler/PervEnv/Basis/char.sig
ViewVC logotype

View of /sml/branches/FLINT/src/compiler/PervEnv/Basis/char.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (download) (as text) (annotate)
Mon Sep 7 21:11:35 1998 UTC (21 years, 1 month ago) by monnier
File size: 1797 byte(s)
110.8
(* char.sig
 *
 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
 *
 *)

signature CHAR =
  sig

    eqtype char
    eqtype string

    val chr : int -> char
    val ord : char -> int

    val minChar : char
    val maxChar : char
    val maxOrd  : int

    val pred : char -> char
    val succ : char -> char

    val <  : (char * char) -> bool
    val <= : (char * char) -> bool
    val >  : (char * char) -> bool
    val >= : (char * char) -> bool

    val compare : (char * char) -> order

    val scan : (char, 'a) StringCvt.reader -> (char, 'a) StringCvt.reader
    val fromString  : String.string -> char option
    val toString    : char -> String.string
    val fromCString : String.string -> char option
    val toCString   : char -> String.string

    val contains : string -> char -> bool
    val notContains : string -> char -> bool

    val isLower    : char -> bool   (* contains "abcdefghijklmnopqrstuvwxyz" *)
    val isUpper    : char -> bool   (* contains "ABCDEFGHIJKLMNOPQRSTUVWXYZ" *)
    val isDigit    : char -> bool   (* contains "0123456789" *)
    val isAlpha    : char -> bool   (* isUpper orelse isLower *)
    val isHexDigit : char -> bool   (* isDigit orelse contains "abcdefABCDEF" *)
    val isAlphaNum : char -> bool   (* isAlpha orelse isDigit *)
    val isPrint    : char -> bool   (* any printable character (incl. #" ") *)
    val isSpace    : char -> bool   (* contains " \t\r\n\v\f" *)
    val isPunct    : char -> bool
    val isGraph    : char -> bool   (* (not isSpace) andalso isPrint *)
    val isCntrl    : char -> bool
    val isAscii    : char -> bool   (* ord c < 128 *)

    val toUpper : char -> char
    val toLower : char -> char

  end; (* CHAR *)

(*
 * $Log: char.sig,v $
 * Revision 1.1.1.1  1998/04/08 18:40:04  george
 * Version 110.5
 *
 *)

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0