CsvReader.this

this(Range input, Separator delimiter, Separator quote, bool allowInconsistentDelimiterCount)

Constructor to initialize the input, delimiter and quote for input without a header.

------- string str = 76;^26^;22; int[] ans = 76,26,22; auto records = CsvReader!(int,Malformed.ignore,string,char,string[]) (str, ';', '^');

foreach (record; records) { assert(equal(record, ans)); } -------

this(Range input, Header colHeaders, Separator delimiter, Separator quote, bool allowInconsistentDelimiterCount)

Constructor to initialize the input, delimiter and quote for input with a header.

------- string str = high;mean;low\n76;^26^;22; auto records = CsvReader!(int,Malformed.ignore,string,char,string[]) (str, "high","low", ';', '^');

int[] ans = 76,22; foreach (record; records) { assert(equal(record, ans)); } -------

Throws

HeaderMismatchException when a header is provided but a

matching column is not found or the order did not match that found in the input (non-struct).