X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_misc.mli;h=0551161b9ebe6038e79b222f12380c7b08187603;hb=7ddef45b3b2c42dd02bf86a1d426e3216f9ef882;hp=946446dc6cc35c3ef6f3b7a377b396f2f424914b;hpb=5e2135da18eeca0970692c12a0174690e6db7bd6;p=helm.git diff --git a/helm/http_getter/http_getter_misc.mli b/helm/http_getter/http_getter_misc.mli index 946446dc6..0551161b9 100644 --- a/helm/http_getter/http_getter_misc.mli +++ b/helm/http_getter/http_getter_misc.mli @@ -47,10 +47,14 @@ val cp: string -> string -> unit standard wget rules are used. Additionally this function support also the "file://" scheme for file system addressing *) val wget: ?output: string -> string -> unit - (** gzip frontend, if keep = true original file will be kept *) -val gzip: ?keep: bool -> string -> unit - (** gunzip frontend, if keep = true original file will be kept *) -val gunzip: ?keep: bool -> string -> unit + (** gzip frontend. If keep = true original file will be kept, default is + false. output is the file on which gzipped data will be saved, default is + given file with an added ".gz" suffix *) +val gzip: ?keep: bool -> ?output: string -> string -> unit + (** gunzip frontend. If keep = true original file will be kept, default is + false. output is the file on which gunzipped data will be saved, default is + given file name without trailing ".gz" *) +val gunzip: ?keep: bool -> ?output: string -> string -> unit (** tempfile frontend, return the name of created file. A special purpose suffix is used (actually "_http_getter" *) val tempfile: unit -> string @@ -69,3 +73,13 @@ val http_get: string -> string option remote resources fetched via HTTP GET requests *) val http_get_iter_buf: callback:(string -> unit) -> string -> unit + (** add a line to a file (specified by name) _after_ a given line (defaults to + last line). *) +val add_line: fname:string -> ?position:int -> string -> unit + (** remove a line, if any, from a file specified by line number (0 based, i.e. + first line of file is line 0) *) +val remove_line: fname:string -> int -> unit + + (** true on blanks-only and #-commented lines, false otherwise *) +val is_blank_line: string -> bool +