Up

Module Positional

Signature

type header = (string * int * int) list

Specify the name, and 0-based starting position and length of each column. For example column 'foo' starting on the first character of each line and 8 characters wide would be ("foo", 0, 8). Column ranges must not overlap.

All following funtions return Error if column ranges overlap.

val create_reader : (header, ?strict:bool -> string -> Row.t Async.Std.Pipe.Reader.t Async.Std.Deferred.Or_error.t) reader
val of_writer : Async.Std.Writer.t -> ?strict:bool -> header -> string list Async.Std.Pipe.Writer.t Core.Std.Or_error.t
val create_writer : string -> ?strict:bool -> header -> string list Async.Std.Pipe.Writer.t Async.Std.Deferred.Or_error.t