Module Adaptor.Key_value

module Key_value: sig .. end
Adaptor module for key-value property lists. This file format is essentially pairs of keys and associated values, separated by some character (such as '=' or ':'). We discard blank lines and comment lines and join lines ending in a backslash.

val adaptor : ?quiet:bool -> ?comment:string -> ?delim:char -> Adaptor.adaptor
Adaptor to parse a key-value file. Lines starting with ?comment (default "#" are considered comments and discarded. Lines are then split between a key and a value at ?delim (default '='), and leading and trailing white space is discarded.
val fitting : ?quiet:bool -> ?comment:string -> ?delim:char -> Adaptor.fitting_adaptor
Fitting for key-value files.
val reader : ?comment:string -> Reader.t
Read key-value raw lines.
val splitter : ?quiet:bool -> ?delim:char -> Adaptor.splitter
Split key-value file lines and fill in Line.Key_value.

Functorial Interface


module type SPEC = sig .. end
Input signature for Adaptor.Key_value.Make.
module type S = sig .. end
Output signature for Adaptor.Key_value.Make.
module Make: 
functor (Spec : SPEC-> S
Functor to create custom key-value adaptors.