aboutsummaryrefslogtreecommitdiff
path: root/unicode.mli
blob: 9a48807bf46aa24a4c57eee2b557d139b119d504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
type t

type decoder_encoding = [ `ISO_8859_1 | `US_ASCII | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] 

val decode : ?encoding:[< decoder_encoding ] -> string -> t

val to_utf8: t -> string

(** String functions *)

val length : t -> int

val get : t -> int -> Uchar.t

val make : int -> Uchar.t -> t

val init : int -> (int -> Uchar.t) -> t

val sub : t -> int -> int -> t

val blit : t -> int -> t -> int -> int -> unit

val concat : t list -> t

val iter : (Uchar.t -> unit) -> t -> unit

val to_list : t -> Uchar.t list