mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
add alias CCString.split (close #115)
This commit is contained in:
parent
9cca745fcf
commit
c725543faa
2 changed files with 6 additions and 0 deletions
|
|
@ -402,6 +402,8 @@ let split_on_char c s: _ list =
|
||||||
s = split_on_char ' ' s |> String.concat " ")
|
s = split_on_char ' ' s |> String.concat " ")
|
||||||
*)
|
*)
|
||||||
|
|
||||||
|
let split = Split.list_cpy
|
||||||
|
|
||||||
let compare_versions a b =
|
let compare_versions a b =
|
||||||
let of_int s = try Some (int_of_string s) with _ -> None in
|
let of_int s = try Some (int_of_string s) with _ -> None in
|
||||||
let rec cmp_rec a b = match a(), b() with
|
let rec cmp_rec a b = match a(), b() with
|
||||||
|
|
|
||||||
|
|
@ -499,6 +499,10 @@ val split_on_char : char -> string -> string list
|
||||||
(** Split the string along the given char
|
(** Split the string along the given char
|
||||||
@since NEXT_RELEASE *)
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
|
val split : by:string -> string -> string list
|
||||||
|
(** Alias to {!Split.list_cpy}
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
(** {2 Utils} *)
|
(** {2 Utils} *)
|
||||||
|
|
||||||
val compare_versions : string -> string -> int
|
val compare_versions : string -> string -> int
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue