diff options
| author | Hugo Herbelin | 2019-04-05 19:53:48 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2019-09-10 12:05:32 +0200 |
| commit | f612bee8c1723b4d66fe1ba93dbb23f5bd201ae6 (patch) | |
| tree | 454cd553f1eb1c11e096162c8c8ac62e830ea0e2 /clib/cString.mli | |
| parent | d338a42c261287439dd6e9bc07b40a68f2a71786 (diff) | |
Moving a standard string function (is_prefix) from Minilib to CString.
Diffstat (limited to 'clib/cString.mli')
| -rw-r--r-- | clib/cString.mli | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
