Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 955 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 955 Bytes

csv-parser

Run

To run all test:

clean test

To start application use:

run

What is implemented?

  • The quoting character should be configurable, defaulting to "
  • The line separator should also be configurable, defaulting to \n
  • The field delimiter should also be configurable, defaulting to ,
  • The CSV can contain an optional header row
  • String values can be optionally quoted, enclosed in the predefined quoting character
  • The parser should handle new line characters embedded in a quoted cell
  • The parser should handle field delimiters inside quoted cells
  • Two consecutive field delimiters mean the value is absent/null
  • A field where part of the text appears as "quoted" and part as not quoted should be interpreted as a single field
  • The input file can potentially be very large(Tested with 1 GB file)
  • Handle files in arbitrary encodings other than UTF-8