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