yanlinlin82 / csv-parser-cplusplus

Automatically exported from code.google.com/p/csv-parser-cplusplus
GNU General Public License v3.0
0 stars 0 forks source link

ignoring field_terminator between two enclosure_chars #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Csv line: "Sep 16, 2003","5.44","5.47","5.41","5.45","14402700"
does not parse correctly. I am using your definitions of parser delimiters, as 
in the example code provided with the library.

What is the expected output? What do you see instead?
I use a minor modification of the example code to parse the lines and output 
the fields with the separator "-". 
I expect to see:
Sep 16, 2003 - 5.44 - 5.47 - 5.41 - 5.45 - 14402700 -

I see:
Sep 16 - -  200 - 5.44 - 5.47 - 5.41 - 5.45- 14402700-

What version of the product are you using? On what operating system?

Please provide any additional information below.

Could you instruct your otherwise very nice parser to ignore the 
field_terminator (in this case a comma ",") when it appears between the two 
enclosure_chars?
Thanks

Original issue reported on code.google.com by rytis.pa...@gmail.com on 21 Sep 2013 at 4:39

GoogleCodeExporter commented 9 years ago
Correction...
What is the expected output? What do you see instead?
I see:
Sep 16, -  200 - 5.44 - 5.47 - 5.41 - 5.45 - 14402700 - 

Original comment by rytis.pa...@gmail.com on 21 Sep 2013 at 4:42