Module Expert.Parse_header
type t
Type
t
represents an incomplete header parse. Keep callinginput
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:Delimited_kernel__.Header.t -> unit -> (t, int Core_kernel.String.Map.t) Core_kernel.Either.t
val input : t -> len:int -> Core_kernel.Bytes.t -> (t, int Core_kernel.String.Map.t * string) Core_kernel.Either.t
input t ~len s
reads the firstlen
bytes froms
and returns eithert
orheader_map, unused_input
.
val input_string : t -> len:int -> string -> (t, int Core_kernel.String.Map.t * string) Core_kernel.Either.t
val is_at_beginning_of_row : t -> bool