I'm reading in CSV files and trying to remove the outer quotes. I'm currently using this:
std::string cell = "input "my quoted" cell"; // from `getline()`
std::stringstream cs;
std::string unquoted;
cs << cell;
cs >> std::quoted(unquoted);
This does work, but it seems to me that this is very inefficient, since I have to create a std::stringstream
each time. Is there a direct way of removing the quotes (and escaping the inner quotes)?
Thank you in advance!