Module Omod.Private.String

module String: sig .. end
Strings.

include String
val cut : sep:char -> string -> (string * string) option
cut ~sep s cuts s on the left and right of the first char sep starting from the left.
val rev_cut : sep:char -> string -> (string * string) option
rev_cut ~sep s cuts s on the left and right of the first char sep starting from the right.
val rev_cuts : sep:char -> string -> string list
val edit_distance : string -> string -> int
edit_distance s0 s1 is the number of single character edits (insertion, deletion, substitution) that are needed to change s0 into s1.
val suggest : ?dist:int -> string list -> string -> string list
suggest ~dist candidates s are the elements of candidates whose edit distance is the smallest to s and at most at a distance of dist of s (defaults to 2). If multiple results are returned the order of candidates is preserved.
module Set: Set.S  with type elt = string
String sets
module Map: Map.S  with type key = string
String maps.