Module Line.Delim

module Delim: sig .. end
Line structure to represent records with delimited fields.

For example, this may be appropriate for generic comma- or tab-delimited data.


val fields : Line.t -> string array
The fields of a delimited data record (accessor, required, default = [|  |])
val set_fields : string array -> Line.t -> Line.t
Updater for Line.Delim.fields
val names : Line.t -> string list
The names of the fields, in order. This is used by Line.Delim.get (accessor, nullable)
val set_names : string list -> Line.t -> Line.t
Updater for Line.Delim.names
val get : string -> Line.t -> string
val get_int : string -> Line.t -> int
val get_float : string -> Line.t -> float
val options : Line.t -> Delimited.options
The Delimited options with which the record was split (accessor, nullable)
val set_options : Delimited.options -> Line.t -> Line.t
Updater for Line.Delim.options
val output : Pervasives.out_channel -> Line.t -> unit
Output a delimited text file record using the stored Delimited.options.
val create : fields:string array -> Line.t -> Line.t
Add the Line.Delim substructure to a line.