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

NAME

6       Stdlib.Char - no description
7

Module

9       Module   Stdlib.Char
10

Documentation

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