package dose3

  1. Overview
  2. Docs
Dose library (part of Mancoosi tools)

Install

Dune Dependency

Authors

Maintainers

Sources

dose3-6.1.tar.gz
md5=dedc2f58f2c2b59021f484abc6681d93
sha512=603462645bac190892a816ecb36ef7b9c52f0020f8d7710dc430e2db65122090fdedb24a8d2e03c32bf53a96515f5b51499603b839680d0a7a2146d6e0fb6e34

doc/dose3.common/Dose_common/Input/index.html

Module Dose_common.InputSource

Input routines

Sourceval gzip_open_file : string -> IO.input

load a file in gzip format

  • returns

    ExtLib.IO.input channel

Sourceval bzip_open_file : string -> IO.input

load a file in bzip format

  • returns

    ExtLib.IO.input channel

Sourceval std_open_file : string -> IO.input

load a non compressed file

  • returns

    ExtLib.IO.input channel

Sourceexception File_empty
Sourceval open_file : string -> IO.input

load a file either in gzip, bzip or not compressed format

  • returns

    ExtLib.IO.input channel. Raise File_empty if the file is empty or fail if the file does not exist

Sourceval open_ch : in_channel -> IO.input
Sourceval close_ch : IO.input -> unit
Sourceval parse_uri : string -> Url.filetypes * (string option * string option * string option * string option * string) * string option

parse a uri. i.e. : deb://path/to/file rpm://path/to/file cudf://path/to/file

  • returns

    a tuple representing the uri

Sourceval guess_format : string list list -> Url.filetypes

guess the input format from a list of list of uris and check * if the list is omogenueous w.r.t the guessed format. Fails otherwise

OCaml

Innovation. Community. Security.