Persist variables to file (~/.whenjobs/variables).
[whenjobs.git] / lib / whenutils.mli
index 00b2ff1..ef3f591 100644 (file)
@@ -160,3 +160,10 @@ 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_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]. *)