Skip to content
Snippets Groups Projects
Commit 6a1c18e6 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[Extlib] removed string_split

parent a5aa26ca
No related branches found
No related tags found
No related merge requests found
......@@ -370,11 +370,6 @@ let string_del_suffix ?(strict=false) suffix s =
(String.sub s 0 (String.length s - String.length suffix))
else None
let string_split s i =
let s1 = String.sub s 0 i in
let s2 = String.sub s (i+1) (String.length s - i -1) in
(s1,s2)
let make_unique_name mem ?(sep=" ") ?(start=2) from =
let rec build base id =
let fullname = base ^ sep ^ string_of_int id in
......
......@@ -226,12 +226,6 @@ val string_del_suffix: ?strict:bool -> string -> string -> string option
@since Aluminium-20160501
*)
val string_split: string -> int -> string * string
(** [string_split s i] returns the beginning of [s] up to char [i-1] and the
end of [s] starting from char [i+1]
@raise Invalid_argument if [i] is not in the range [[0,(length s -1)]]
@since Oxygen-20120901 *)
val make_unique_name:
(string -> bool) -> ?sep:string -> ?start:int -> string -> int*string
(** [make_unique_name mem s] returns [(0, s)] when [(mem s)=false]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment