Enable native code compilation when ocamlopt is available.
[whenjobs.git] / lib / whenutils.mli
index 00b2ff1..da51c70 100644 (file)
@@ -160,3 +160,6 @@ val filter_map : ('a -> 'b option) -> 'a list -> 'b list
 val string_of_time_t : ?localtime:bool -> float -> string
 (** Convert string to time in ISO format.  If [~localtime] is true
     then it uses localtime, else UTC. *)
 val string_of_time_t : ?localtime:bool -> float -> string
 (** Convert string to time in ISO format.  If [~localtime] is true
     then it uses localtime, else UTC. *)
+
+val string_endswith : string -> string -> bool
+(** [string_endswith str suffix] returns true iff [str] ends with [suffix]. *)