git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist variables to file (~/.whenjobs/variables).
[whenjobs.git]
/
lib
/
whenutils.mli
diff --git
a/lib/whenutils.mli
b/lib/whenutils.mli
index
da51c70
..
ef3f591
100644
(file)
--- a/
lib/whenutils.mli
+++ b/
lib/whenutils.mli
@@
-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]. *)