Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / char0.sig
1 (* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9 signature CHAR0 =
10 sig
11 type t = char
12
13 val < : t * t -> bool
14 val <= : t * t -> bool
15 val > : t * t -> bool
16 val >= : t * t -> bool
17
18 val chr: Pervasive.Int.int -> t
19 val compare: t * t -> order
20 val dash: t
21 val digitToInt: t -> Pervasive.Int.int option
22 val dquote: t (* " *)
23 val equals: t * t -> bool
24 val escapeC: t -> string
25 val escapeSML: t -> string
26 val fromCString: string -> t option
27 val fromHexDigit: int -> t
28 val fromDigit: Pervasive.Int.int -> t
29 val fromInt: Pervasive.Int.int -> t
30 val fromString: string -> t option
31 val fromWord8: Pervasive.Word8.word -> t
32 val isAlpha: t -> bool
33 val isAlphaNum: t -> bool
34 val isAscii: t -> bool
35 val isCntrl: t -> bool
36 val isDigit: t -> bool
37 val isGraph: t -> bool
38 val isHexDigit: t -> bool
39 val isLower: t -> bool
40 val isPrint: t -> bool
41 val isSpace: t -> bool
42 val isUpper: t -> bool
43 val max: t * t -> t
44 val maxChar: t
45 val maxOrd: int
46 val memoize: (char -> 'a) -> (char -> 'a)
47 val min: t * t -> t
48 val minChar: t
49 val newline: t
50 val numChars: int
51 val ord: t -> Pervasive.Int.int
52 val output: t * TextIO.outstream -> unit
53 val pred: t -> t
54 val space: t
55 val succ: t -> t
56 val toHexDigit: t -> int
57 val toInt: t -> Pervasive.Int.int
58 val toCString: t -> string
59 val toLower: t -> t
60 (* val toPrintable: t -> string *)
61 val toString: t -> string
62 val toUpper: t -> t
63 val toWord8: t -> Pervasive.Word8.word
64 end