Module Adaptor.Delim


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
Input signature for Adaptor.Delim.Make.
module type S = sig .. end
Output signature for Adaptor.Delim.Make.
module Make: 
functor (Spec : SPEC) -> S
Functor to create custom delim adaptors.
module type SPEC_NAMES = sig .. end
Input signature for Adaptor.Delim.Make_names.
module type S_NAMES = sig .. end
Output signature for Adaptor.Delim.Make.
module Make_names: 
functor (Spec : SPEC_NAMES) -> S_NAMES
Functor to create custom delim adaptors with field names.