X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fextlib%2FhExtlib.mli;h=3372975dab05b5f6c5e1d46334336efdaa045fcb;hb=b96b712d43bda14914a9d563712db88f24f3276a;hp=376cb448ab204d19a50873b6fa69ad8fcb765d7c;hpb=f41876ee0d76202514504fb7031c0245e56926be;p=helm.git diff --git a/helm/ocaml/extlib/hExtlib.mli b/helm/ocaml/extlib/hExtlib.mli index 376cb448a..3372975da 100644 --- a/helm/ocaml/extlib/hExtlib.mli +++ b/helm/ocaml/extlib/hExtlib.mli @@ -34,6 +34,7 @@ val unopt: 'a option -> 'a (** @raise Failure *) val is_dir: string -> bool (** @return true if file is a directory *) val is_regular: string -> bool (** @return true if file is a regular file *) val mkdir: string -> unit (** create dir and parents. @raise Failure *) +val tilde_expand: string -> string (** bash-like (head) tilde expansion *) (** find all _files_ matching test under a filesystem root *) val find: ?test:(string -> bool) -> string -> string list @@ -48,6 +49,12 @@ val output_file: filename:string -> text:string -> unit (** other way round *) val finally: (unit -> unit) -> ('a -> 'b) -> 'a -> 'b +(** {2 Char processing} *) + +val is_alpha: char -> bool +val is_digit: char -> bool +val is_alphanum: char -> bool (** is_alpha || is_digit *) + (** {2 String processing} *) val split: ?sep:char -> string -> string list (** @param sep defaults to ' ' *)