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 ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : Line.absent; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : < section : Line.absent >;
mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i >)
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 ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : Line.absent; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : < section : Line.absent >;
mailcap : 'd; passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i >)
Adaptor.fitting_adaptor
Fitting for key-value files.
val reader : ?comment:string -> Reader.t
Read key-value records.
val splitter : ?quiet:bool ->
?delim:char ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : Line.absent; mailcap : 'd;
passwd : 'e; ps : 'f; seq : 'g; source : 'h; stat : 'i > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : < section : Line.absent >;
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 key-value adaptors.