add alias CCString.split (close #115)

This commit is contained in:
Simon Cruanes 2017-04-18 21:23:18 +02:00
parent 9cca745fcf
commit c725543faa
2 changed files with 6 additions and 0 deletions

View file

@ -402,6 +402,8 @@ let split_on_char c s: _ list =
s = split_on_char ' ' s |> String.concat " ")
*)
let split = Split.list_cpy
let compare_versions a b =
let of_int s = try Some (int_of_string s) with _ -> None in
let rec cmp_rec a b = match a(), b() with

View file

@ -499,6 +499,10 @@ val split_on_char : char -> string -> string list
(** Split the string along the given char
@since NEXT_RELEASE *)
val split : by:string -> string -> string list
(** Alias to {!Split.list_cpy}
@since NEXT_RELEASE *)
(** {2 Utils} *)
val compare_versions : string -> string -> int