CSV

Simple CSV parser. Passes extracted fields, one row at a time to a user-provided delegate.

Constructors

this
this()

Constructor.

Members

Aliases

RowDg
alias RowDg = bool delegate(cstring[] fields)

Type of delegate which receives parsed CSV rows.

Functions

parse
void parse(InputStream stream, RowDg row_dg)

Parses CSV data from the provided stream. Parsing ends when an EOF is encountered. As rows are extracted and parsed, they are passed to the provided delegate.

Variables

separator
char separator;

Separator character. Defaults to comma, but may be set before calling parse().

Meta