ben-strasser / fast-cpp-csv-parser

fast-cpp-csv-parser
BSD 3-Clause "New" or "Revised" License
2.15k stars 440 forks source link

Possible amelioration : add string as delimiters #94

Open jak0nil opened 4 years ago

jak0nil commented 4 years ago

Hello,

I've tried using your library for parsing a file, but in my last column some data has commas in it. Example: "1037126850","d reconstruction from d cultural heritage models","patrick callet:2280254964","2014","4","multimedia:0.41869545;spectral rendering:0.5759965;rendering (computer graphics):0.4869032;data acquisition:0.4205314;science, technology and society:0.4036085;3d reconstruction:0.458837122;making-of:0.414647043;cultural heritage:0.5178016;computer graphics (images):0.384940773;geography:0.3850307"

As you can see, one of my tags is : science, technology and society:0.4036085; And as I read this line, I get an exception. So maybe setting the demiliter to "\",\"" could be helpful.

ben-strasser commented 4 years ago

Thanks for the feedback. However, I do not understand the problem. Why does CSVReader<6, trim_chars<' '>, double_quote_escape<',','\"'> > not solve the problem?