1Char(3)                          OCaml library                         Char(3)
2
3
4

NAME

6       Char - Character operations.
7

Module

9       Module   Char
10

Documentation

12       Module Char
13        : sig end
14
15
16       Character operations.
17
18
19
20
21
22
23       val code : char -> int
24
25       Return the ASCII code of the argument.
26
27
28
29       val chr : int -> char
30
31       Return the character with the given ASCII code.  Raise Invalid_argument
32       Char.chr if the argument is outside the range 0--255.
33
34
35
36       val escaped : char -> string
37
38       Return a string representing the given character, with special  charac‐
39       ters  escaped  following the lexical conventions of OCaml.  All charac‐
40       ters outside the ASCII printable range (32..126) are escaped,  as  well
41       as backslash, double-quote, and single-quote.
42
43
44
45       val lowercase : char -> char
46
47       Deprecated.   Functions  operating  on Latin-1 character set are depre‐
48       cated.
49
50
51       Convert the given character  to  its  equivalent  lowercase  character,
52       using the ISO Latin-1 (8859-1) character set.
53
54
55
56       val uppercase : char -> char
57
58       Deprecated.   Functions  operating  on Latin-1 character set are depre‐
59       cated.
60
61
62       Convert the given character  to  its  equivalent  uppercase  character,
63       using the ISO Latin-1 (8859-1) character set.
64
65
66
67       val lowercase_ascii : char -> char
68
69       Convert  the  given  character  to  its equivalent lowercase character,
70       using the US-ASCII character set.
71
72
73       Since 4.03.0
74
75
76
77       val uppercase_ascii : char -> char
78
79       Convert the given character  to  its  equivalent  uppercase  character,
80       using the US-ASCII character set.
81
82
83       Since 4.03.0
84
85
86       type t = char
87
88
89       An alias for the type of characters.
90
91
92
93       val compare : t -> t -> int
94
95       The  comparison function for characters, with the same specification as
96       Pervasives.compare .  Along with the type t  ,  this  function  compare
97       allows  the  module  Char  to  be  passed  as  argument to the functors
98       Set.Make and Map.Make .
99
100
101
102       val equal : t -> t -> bool
103
104       The equal function for chars.
105
106
107       Since 4.03.0
108
109
110
111
112
113OCamldoc                          2018-07-14                           Char(3)
Impressum