module SimpleFlatFile: sig
.. end
Adaptor module for simple flat file tables.
Handles blank lines, comments, and capping the number of fields.
val adaptor : ?comments:string ->
?blanks:bool ->
?max:int ->
char ->
(< 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 into
Line.Delim
. If
comment
is given (default
None
), lines starting with
comment
(ignoring leading white
space) are considered comment lines and are ignored by the reader.
If
blanks
is true (default
true
), lines consisting entirely of
white space are ignored by the record reader. If
max
is given,
then only
max
fields will be produced, and the last field may
contain record separatos. The final
char
argument is the field
separator.
val fitting : ?comments:string ->
?blanks:bool ->
?max:int ->
char ->
(< 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 simple flat files.
val reader : ?comments:string -> ?blanks:bool -> Reader.t
val splitter : ?max:int ->
char ->
(< 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
Functorial Interface
module type SPEC = sig
.. end
module type S = sig
.. end
module Make: functor (
Spec
:
SPEC
) ->
S
Functor to create custom flat file adaptors.
module type SPEC_NAMES = sig
.. end
module type S_NAMES = sig
.. end
module Make_names:
Functor to create custom flat file adaptors with field names.