module Delim: sig
.. end
Adaptor modules for flexible handling of delimited text files.
This is a thin layer over Delimited
, and takes the same
Delimited.options
. Results are stored in Line.Delim
.
val adaptor : ?options:Delimited.options ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.adaptor
Split lines according to the given
Delimited
options.
val fitting : ?options:Delimited.options ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.fitting_adaptor
Fitting for delimited text files.
val reader : ?options:Delimited.options -> Reader.t
Read records according to the given
Delimited
options.
val splitter : ?options:Delimited.options ->
(< delim : Line.absent; fstab : 'a; group : 'b; key_value : 'c; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : < names : Line.absent; options : Line.present >; fstab : 'a;
group : 'b; key_value : 'c; mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g;
source : 'h; stat : 'i >)
Adaptor.splitter
Split one record according to the given
Delimited
options.
Functorial Interface
module type SPEC = sig
.. end
module type S = sig
.. end
module Make: functor (
Spec
:
SPEC
) ->
S
Functor to create custom delim adaptors.
module type SPEC_NAMES = sig
.. end
module type S_NAMES = sig
.. end
module Make_names:
Functor to create custom delim adaptors with field names.