A simple CSV (comma separated values) structure

Static methods

@:value({ quotedCells : true, delimeter : "," })staticparse(input:String, delimeter:String = ",", quotedCells:Bool = true):CSV

Parses CSV formatted string into a useable data structure

Parameters:

input

csv-formatted string

delimeter

string that separates cells

quotedCells

whether all cells are quoted (true) or all cells are unqouted (false)

Returns:

the parsed CSV data

staticparseSimple(input:String):CSV

Parses CSV assuming 1) All cells are unquoted and 2) No commas or endlines exist within a cell Endline format will be auto-detected: a single '\r\n' will make it split lines based on windows style endlines, otherwise it will attempt splitting based on unix-style '\n' endlines.

Parameters:

input

csv-formatted string

Returns:

the parsed CSV data

staticparseWithFormat(input:String, format:CSVParseFormat):CSV

Parses CSV formatted string into a useable data structure

Parameters:

format

details about the parse format

Returns:

the parsed CSV data

Variables

Methods