1Char(3) OCaml library Char(3)
2
3
4
6 Char - Character operations.
7
9 Module Char
10
12 Module Char
13 : sig end
14
15
16 Character operations.
17
18
19
20
21
22
23
24 val code : char -> int
25
26 Return the ASCII code of the argument.
27
28
29
30
31 val chr : int -> char
32
33 Return the character with the given ASCII code. Raise Invalid_argument
34 Char.chr if the argument is outside the range 0--255.
35
36
37
38
39 val escaped : char -> string
40
41 Return a string representing the given character, with special characā
42 ters escaped following the lexical conventions of Objective Caml.
43
44
45
46
47 val lowercase : char -> char
48
49 Convert the given character to its equivalent lowercase character.
50
51
52
53
54 val uppercase : char -> char
55
56 Convert the given character to its equivalent uppercase character.
57
58
59
60 type t = char
61
62
63 An alias for the type of characters.
64
65
66
67
68 val compare : t -> t -> int
69
70 The comparison function for characters, with the same specification as
71 Pervasives.compare . Along with the type t , this function compare
72 allows the module Char to be passed as argument to the functors
73 Set.Make and Map.Make .
74
75
76
77
78
79
80OCamldoc 2007-05-24 Char(3)