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