Skip to content
This repository
Newer
Older
100644 60 lines (53 sloc) 1.893 kb
59411f16 »
2011-09-06 [feature] libbase: Added baseStringSlice.
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
19 type t
20 val empty : t
21 val length : t -> int
22 val get : t -> int -> char
23 val set : t -> int -> char -> unit
24 val create : int -> t
25 val make : int -> char -> t
26 val copy : t -> t
27 val sub : t -> int -> int -> t
28 val unsafe_sub : t -> int -> int -> t
29 val fill : t -> int -> int -> char -> unit
30 val blit : t -> int -> t -> int -> int -> unit
31 val concat : t -> t list -> t
32 val iter : (char -> unit) -> t -> unit
33 val escaped : t -> t
34 val index : t -> char -> int
35 val rindex : t -> char -> int
36 val index_from : t -> int -> char -> int
37 val rindex_from : t -> int -> char -> int
38 val contains : t -> char -> bool
39 val contains_from : t -> int -> char -> bool
40 val rcontains_from : t -> int -> char -> bool
41 val uppercase : t -> t
42 val lowercase : t -> t
43 val capitalize : t -> t
44 val uncapitalize : t -> t
45 val compare: t -> t -> int
46 val unsafe_get : t -> int -> char
47 val unsafe_set : t -> int -> char -> unit
48 val unsafe_blit : t -> int -> t -> int -> int -> unit
49 val unsafe_fill : t -> int -> int -> char -> unit
50
51 val of_string : string -> t
52 val to_string : t -> string
53 val export : t -> string * int * int
54 val import : string * int * int -> t
55 val widen : t -> unit
56 val normalize : t -> t
57 val real_size : t -> int
58 val set_size : t -> int -> t
59 val rebase : t -> unit
Something went wrong with that request. Please try again.