1212 * GNU Lesser General Public License for more details.
1313 *)
1414module String : sig
15- val of_char : char -> string
16-
17- val rev_map : (char -> char ) -> string -> string
18- (* * Map a string to a string, applying the given function in reverse
19- order. *)
20-
21- val rev_iter : (char -> unit ) -> string -> unit
22- (* * Iterate over the characters in a string in reverse order. *)
23-
24- val fold_left : ('a -> char -> 'a ) -> 'a -> string -> 'a
25- (* * Fold over the characters in a string. *)
26-
27- val fold_right : (char -> 'a -> 'a ) -> string -> 'a -> 'a
28- (* * Iterate over the characters in a string in reverse order. *)
29-
3015 val isspace : char -> bool
3116 (* * True if the character is whitespace *)
3217
@@ -49,9 +34,6 @@ module String : sig
4934 val has_substr : string -> string -> bool
5035 (* * True if sub is a substr of str *)
5136
52- val find_all : string -> string -> int list
53- (* * find all occurences of needle in haystack and return all their respective index *)
54-
5537 val replace : string -> string -> string -> string
5638 (* * replace all [f] substring in [s] by [t] *)
5739
@@ -63,10 +45,4 @@ module String : sig
6345
6446 val sub_to_end : string -> int -> string
6547 (* * a substring from the specified position to the end of the string *)
66-
67- val sub_before : char -> string -> string
68- (* * a substring from the start of the string to the first occurrence of a given character, excluding the character *)
69-
70- val sub_after : char -> string -> string
71- (* * a substring from the first occurrence of a given character to the end of the string, excluding the character *)
7248end
0 commit comments