blob: 1b584c08069a33a350d35b9b1f8c8887b06c0603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
type t = string
val str : char -> t
val length : t -> int
val append : t -> t -> t
val sub : t -> int -> char
val suffix : t -> int -> string
val index : t -> char -> option int
val atFirst : t -> char -> option string
val mindex : {Haystack : t, Needle : t} -> option int
val substring : t -> {Start : int, Len : int} -> string
val split : t -> char -> option (string * string)
val msplit : {Haystack : t, Needle : t} -> option (string * char * string)
|