package core_extended

  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: [ `No | `Yes | `Require of string list | `Replace of string list | `Add of string list | `Transform of string list -> string list | `Filter_map of string list -> string option list ] -> 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 first len bytes from s and returns either t or header_map, unused_input.

val input_string : t -> len:int -> string -> (t, int Core_kernel.String.Map.t * string) Core_kernel.Either.t