module Key_value_section:sig..end
Adaptor.Key_value, but we also provide a pattern for
recognizing when new sections starts and, optionally, when they end.val adaptor : ?comment:string ->
?delim:char -> ?end_section:string -> string -> Adaptor.adaptorKey_value_section.adaptor pat creates an adaptor for key-value
files, using pat to recognize sections. In particular, pat
must be Perl-compatible regular expression containing exactly one
parenthesized back-reference form, for example, "\[(.+)\]" or
"Host (.+)", in which case the matched substring becomes the
section heading for subsequent lines. At the beginning of
parsing, before pat has matched, the current section heading is
"".
The optional argument ?end_section gives a Perl-compatible
regular expression that, if it matches a line, indicates the end of
the current section. When this happens, the section reverts to the
empty string for subsequent lines. The other optional arguments
are as in Adaptor.Key_value.
val fitting : ?comment:string ->
?delim:char -> ?end_section:string -> string -> Adaptor.fitting_adaptorval reader : ?comment:string -> Reader.tval splitter : ?delim:char -> ?end_section:string -> string -> Adaptor.splitter
module type SPEC =sig..end
Adaptor.Key_value_section.Make.
module type S =sig..end
Adaptor.Key_value_section.Make.
module Make: