dbremner / mili

Automatically exported from code.google.com/p/mili
Boost Software License 1.0
0 stars 0 forks source link

separator-generic CSV parser #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please improve the parser of the stream-utils library.
Currently, it works for whitespace-separated values.
It should work with ',' or any other specified separator (e.g. "-", ";").
For example:
  value,value, value ,value

This is a very important issue.
Probably before or after of the error checking issue.

Pls ensure it works for STL containers (vector, list, and set at least).

Note that phyloloc depends on this library, ensure it still works afterwards, 
and also enjoys of the new functionality (currently, location failes are 
whitespace-separated, and should be comma-separated).

Original issue reported on code.google.com by daniel.g...@fudepan.org.ar on 2 Jan 2012 at 3:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by hugo.arregui on 2 Jan 2012 at 3:59

GoogleCodeExporter commented 9 years ago
Just provide basic delimiting functionality, as a symmetric counterpart of the 
output part, by using the delimiter argument of getline.
Nothing fancy, just use ::getline.

Original comment by daniel.g...@fudepan.org.ar on 2 Jan 2012 at 4:03

GoogleCodeExporter commented 9 years ago
Currently there is a test testReadWithGenericSeparator in stream-utils_test.cpp 
which can be useful in order to check the parser behaviour.

Original comment by matias.t...@gmail.com on 21 Feb 2012 at 8:58