package delimited_parsing

  1. Overview
  2. Docs

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").

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

OCaml

Innovation. Community. Security.