module Benl_core:sig
..end
This module contains handy functions (or modules) not specific to Ben.
module StringSet:sig
..end
module StringMap:sig
..end
module IntMap:sig
..end
val with_in_channel : Pervasives.in_channel -> (Pervasives.in_channel -> 'a) -> 'a
val with_in_file : string -> (Pervasives.in_channel -> 'a) -> 'a
val with_out_file : string -> (Pervasives.out_channel -> 'a) -> 'a
val escape_for_shell : string -> string
"a"
is quoted
into "'a'"
.val get_rfc2822_date : unit -> string
val list_iteri : (int -> 'a -> 'b) -> 'a list -> unit
List.iter
, but calls the function with the index of the
current element.val list_rev_mapi : (int -> 'a -> 'b) -> 'a list -> 'b list
List.rev_map
, but calls the function with the index of
the current element.val uniq : 'a list -> 'a list
val simple_split : char -> string -> string list
simple_split sep s
splits s
using sep
as delimiter.val capitalize : ?sep:char -> string -> string
capitalize ?sep s
capitalizes a field name.val starts_with : string -> string -> bool
starts_with s prefix
returns true
iff s
starts with
prefix
.val ends_with : string -> string -> bool
ends_with s suffix
returns true
iff s
ends with suffix
.