From f612bee8c1723b4d66fe1ba93dbb23f5bd201ae6 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Fri, 5 Apr 2019 19:53:48 +0200 Subject: Moving a standard string function (is_prefix) from Minilib to CString. --- clib/cString.mli | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clib/cString.mli') diff --git a/clib/cString.mli b/clib/cString.mli index 8a4fe62a1c..d02be2d15f 100644 --- a/clib/cString.mli +++ b/clib/cString.mli @@ -51,6 +51,9 @@ sig val is_sub : string -> string -> int -> bool (** [is_sub p s off] tests whether [s] contains [p] at offset [off]. *) + val is_prefix : string -> string -> bool + (** [is_prefix p s] tests whether [p] is a prefix of [s]. *) + (** {6 Generic operations} **) module Set : Set.S with type elt = t -- cgit v1.2.3