B00_linesParse text lines.
And do it regardless of the platform line ending convention.
A line is ends either with "\n" or with "\r\n".
of_string s are s's lines, including empty ones. In particular, this is [""] on the empty string.
val fold :
?file:B0_std.Fpath.t ->
string ->
(int -> string -> 'a -> 'a) ->
'a ->
('a, string) Stdlib.resulterr n fmt formats an error message for line n as "%d:" ^^ fmt and raises Failure with no trace.
val err_file : ?file:B0_std.Fpath.t -> string -> ('a, string) Stdlib.resulterr_file ~file e is the error message e for file file formatted as "%a:%s" Fpath.pp_unquoted f s