csvNextToken

fnvoid csvNextToken(Range, Malformed ErrorLevel = Malformed.throwException, Separator, Output)(ref Range input, ref Output ans, Separator sep, Separator quote, bool startQuoted = false) if (isSomeChar!Separator && isInputRange!Range && is(immutable ElementType!Range == immutable dchar) && isOutputRange!(Output, dchar))

Lower level control over parsing CSV

This function consumes the input. After each call the input will start with either a delimiter or record break (\n, \r\n, \r) which must be removed for subsequent calls.

Parameters

inputAny CSV input
ansThe first field in the input
sepThe character to represent a comma in the specification
quoteThe character to represent a quote in the specification
startQuotedWhether the input should be considered to already be in quotes

Throws

IncompleteCellException When a quote is found in an unquoted

field, data continues after a closing quote, or the quoted field was not closed before data was empty.