summaryrefslogtreecommitdiff
path: root/lib/ur/string.urs
blob: 8fd434b4416d3a4591ecf1ee99847d1b8af79858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type t = string

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)