csv2
csv2 copied to clipboard
adding a cell view
Rather than building a full string, returning a string view may be more efficient in some cases (suppose one wants to drop a column). Something like:
class Cell { [...] std::string_view read_view() const { return std::string_view(buffer_ + start_, end_ - start_); }
[...] };
Even for conversion, it's probably enough.