package delimited_parsing

  1. Overview
  2. Docs
type t

Type t represents an incomplete header parse. Keep calling input on it until you get a map from header name to column number.

val create : ?strip:bool -> ?sep:char -> ?quote:[ `No_quoting | `Using of char ] -> ?header:Header.t -> _ Builder.t -> (t, int Core.String.Map.t) Core.Either.t
val input : t -> len:int -> Core.Bytes.t -> (t, int Core.String.Map.t * string) Core.Either.t

input t ~len s reads the first len bytes from s and returns either t or header_map, unused_input.

val input_string : t -> len:int -> string -> (t, int Core.String.Map.t * string) Core.Either.t
val is_at_beginning_of_row : t -> bool
OCaml

Innovation. Community. Security.