aboutsummaryrefslogtreecommitdiff
path: root/clib/cString.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-10-16 19:13:46 +0200
committerPierre-Marie Pédrot2018-10-16 19:13:46 +0200
commit3b1bff3262c7f40c7f4726d773845bfb6552d364 (patch)
tree1d4b1fe091c50e7a1acfb6460ec113fd363b5d91 /clib/cString.mli
parentc64602a8cf882fa2e4b9a85ea9f57b5b709f598f (diff)
parent33c93006b7685092b5239ea001058578fac3552f (diff)
Merge PR #8738: [clib] Deprecate string functions available in OCaml 4.05
Diffstat (limited to 'clib/cString.mli')
-rw-r--r--clib/cString.mli6
1 files changed, 4 insertions, 2 deletions
diff --git a/clib/cString.mli b/clib/cString.mli
index df25a3821a..a73c2729d0 100644
--- a/clib/cString.mli
+++ b/clib/cString.mli
@@ -31,7 +31,8 @@ sig
(** [implode [s1; ...; sn]] returns [s1 ^ ... ^ sn] *)
val strip : string -> string
- (** Remove the surrounding blank characters from a string *)
+ (** Alias for [String.trim] *)
+ [@@ocaml.deprecated "Use [trim]"]
val drop_simple_quotes : string -> string
(** Remove the eventual first surrounding simple quotes of a string. *)
@@ -52,7 +53,8 @@ sig
(** Generate the ordinal number in English. *)
val split : char -> string -> string list
- (** [split c s] splits [s] into sequences separated by [c], excluded. *)
+ (** [split c s] alias of [String.split_on_char] *)
+ [@@ocaml.deprecated "Use [split_on_char]"]
val is_sub : string -> string -> int -> bool
(** [is_sub p s off] tests whether [s] contains [p] at offset [off]. *)