module Delimited:sig
..end
type
options = {
|
field_sep : |
(* |
The field separator character. (Default
',' ) | *) |
|
record_sep : |
(* |
The record separator character. (Default
'\n' ) | *) |
|
trim_space : |
(* |
Whether to remove whitespace from the beginning and end of each
field. (Default
true ) | *) |
|
rec_backslash : |
(* |
A backslash quotes the next character. (Default
false ) | *) |
|
rec_quotation : |
(* |
Recognize double quotes. (Default
true ) | *) |
|
rec_double_double : |
(* |
Within quotation marks, two double quotes in a row
denote one double quote. (Default
true ) | *) |
|
rec_cr : |
(* |
Treat a carriage return that precedes a record
separator as part of the separator. This, along with setting
the record separator to
'\n' , will treat MS-DOS CRLF as
a record separator. | *) |
|
rec_escapes : |
(* |
Recognize backslash sequences such as
"\\n" for newline
and "\\t" for tab. | *) |
|
max_fields : |
(* |
The maximum number of fields to split into. Field separators
and fields subsequent to this are all concatenated in the last
field. A value of
0 (the default) means unlimited. | *) |
val default_options : options
Csv.reader ~options:{default_options with recognize_backslash = true}
.val reader : ?options:options -> Reader.t
val splitter : ?options:options -> string -> string array
val output_field : ?options:options -> Pervasives.out_channel -> string -> unit
val output_line : ?options:options -> Pervasives.out_channel -> string array -> unit