module Adaptor:sig
..end
Line.raw
and use it to set
other line fields.
Each adaptor module typically contains three functions:
adaptor
maps a Line.t Shtream.t
to a Line.t Shtream.t
where the Line.t
s have been enriched with additionnal fields,
containing the specified data parsed from the input line.
If the shtream is being read from a channel, then it hints to
the source shtream the proper line reader to use.reader
is the line reader for the given kind of file.splitter
is the field splitter that can be used on a single
line or mapped over a shtream.typesplitter =
Line.t -> Line.t
typeadaptor =
Line.t Shtream.t -> Line.t Shtream.t
adaptor
maps an Line.t Shtream.t
to a
Line.t Shtream.t
. It also provides reader hints; that is,
if the input shtream's reader was selected
as a default (rather than by the user), then it may adjust the input
shtream's reader.typefitting_adaptor =
unit -> (Line.t -> Line.t) Fitting.t
val make_adaptor : ?reader:Reader.t -> splitter -> adaptor
module Convert:sig
..end
module Delim:sig
..end
module SimpleFlatFile:sig
..end
module Key_value:sig
..end
module Key_value_section:sig
..end
module Csv:sig
..end
module Passwd:sig
..end
module Group:sig
..end
module Fstab:sig
..end
module Stat:sig
..end
module Ps:sig
..end
module Mailcap:sig
..end
module Ssh_config:Key_value_section.S
module Etc_aliases:Key_value.S
module Etc_hosts:Key_value.S
module Ini_file:Key_value_section.S