Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Character_separated_without_quoting
parses fields separated by a character, where fields may contain escaped characters (e,g, \n
) but fields may not be quoted (e.g., "foo bar"
).
module Row = Delimited_kernel.Read.Row
module Header = Delimited_kernel.Read.Header
All readers defined below will raise if they encounter unparsable content.
val of_reader :
(Header.t,
?quote:char ->
sep:char ->
Async.Reader.t ->
Row.t Async.Pipe.Reader.t)
Shared.reader
of_reader ?quote ?strip ?skip_lines ~sep ~header r
returns a row pipe based on data read from the provided reader. sep
is used as the separator between fields, and is assumed to be escaped with \ unless quote
is given.
val create_reader :
(Header.t,
?quote:char ->
sep:char ->
string ->
Row.t Async.Pipe.Reader.t Async.Deferred.t)
Shared.reader
create_reader ?strip ?skip_lines ~header filename
same as of_reader, but creates the reader for you