Module Adaptor.SimpleFlatFile

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
Raw line reader for simple flat files. See Adaptor.SimpleFlatFile.adaptor for options.
val splitter : ?max:int -> char -> Adaptor.splitter
Split a simple flat files line. See Adaptor.SimpleFlatFile.adaptor for options.

Functorial Interface


module type SPEC = sig .. end
Input signature for Adaptor.SimpleFlatFile.Make.
module type S = sig .. end
Output signature for Adaptor.SimpleFlatFile.Make.
module Make: 
functor (Spec : SPEC-> S
Functor to create custom flat file adaptors.
module type SPEC_NAMES = sig .. end
Input signature for Adaptor.SimpleFlatFile.Make_names.
module type S_NAMES = sig .. end
Output signature for Adaptor.SimpleFlatFile.Make.
module Make_names: 
functor (Spec : SPEC_NAMES-> S_NAMES
Functor to create custom flat file adaptors with field names.