Skip to content
This repository
Newer
Older
100644 45 lines (37 sloc) 1.353 kb
fccc6851 » MLstate
2011-06-21 Initial open-source release
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18 (** {6 From Ocaml Standard Library} *)
19
20 external code : char -> int = "%identity"
21 val chr : int -> char
22 val escaped : char -> string
23 val lowercase : char -> char
24 val uppercase : char -> char
25 type t = char
26 val compare : t -> t -> int
27 external unsafe_chr : int -> char = "%identity"
28
29 (** {6 Extra API} *)
30
31 val equal_insensitive : char -> char -> bool
32 val compare_insensitive : char -> char -> int
33 val width : char -> int
34 val is_digit : char -> bool
35 val is_lower : char -> bool
36 val is_upper : char -> bool
37 val is_alpha : char -> bool
38 (* val pred : char -> char *)
39 (* val succ : char -> char *)
40
41 (**
42 A space char : {[ ' ' ; '\t' ; '\r' ; '\n' ]}
43 *)
44 val is_space : char -> bool
45 val hexa_value : char -> int
Something went wrong with that request. Please try again.