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 -> 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 line reader. If
max
is given,
then only
max
fields will be produced, and the last field may
contain line separators. The final
char
argument is the field
separator.
val fitting : ?comments:string ->
?blanks:bool -> ?max:int -> char -> Adaptor.fitting_adaptor
Fitting for simple flat files.
val reader : ?comments:string -> ?blanks:bool -> Reader.t
val splitter : ?max:int -> char -> 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.