]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/extlib/hExtlib.mli
added char functions:
[helm.git] / helm / ocaml / extlib / hExtlib.mli
index 376cb448ab204d19a50873b6fa69ad8fcb765d7c..3372975dab05b5f6c5e1d46334336efdaa045fcb 100644 (file)
@@ -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 ' ' *)