Persist variables to file (~/.whenjobs/variables).
[whenjobs.git] / lib / whenutils.mli
index da51c70..ef3f591 100644 (file)
@@ -161,5 +161,9 @@ 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. *)
 
 (** Convert string to time in ISO format.  If [~localtime] is true
     then it uses localtime, else UTC. *)
 
+val string_startswith : string -> string -> bool
+(** [string_startswith str prefix] returns true iff [str] starts
+    with [prefix]. *)
+
 val string_endswith : string -> string -> bool
 (** [string_endswith str suffix] returns true iff [str] ends with [suffix]. *)
 val string_endswith : string -> string -> bool
 (** [string_endswith str suffix] returns true iff [str] ends with [suffix]. *)