CsvDialect.this

this( char delimiter, char quote = DEFAULT_QUOTE, bool doubleQuote = DEFAULT_DOUBLE_QUOTE, bool trimWhitespace = DEFAULT_TRIM_WHITESPACE, NewlinePolicy newlinePolicy = DEFAULT_NEWLINE_POLICY, EscapeStyle escapeStyle = DEFAULT_ESCAPE_STYLE, bool header = DEFAULT_HEADER ) @safe pure nothrow @nogc

Convenience constructor. Specify any prefix of arguments to customize options and rely on defaults for the rest.

Examples

// Only change delimiter to semicolon
auto d1 = CsvDialect(';');

// Set delimiter and quote, keep other defaults
auto d2 = CsvDialect('\t', '\'');

// Fully customize
auto d3 = CsvDialect(',', '"', true, true,
                    NewlinePolicy.forceLF, EscapeStyle.none, true);