Header.
More...
#include <cassert>
#include <cstddef>
#include <iosfwd>
#include <iterator>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
|
#define | CSV_TESTING |
|
#define | CSV_VERIFY(X, MSG) |
|
|
std::string | csvtools::getCleanLine (std::istream &is) |
|
std::size_t | csvtools::string_fields::getBeginningOfField (std::string const &line, std::size_t field) |
|
template<typename F > |
return true to continue to
next field *void | csvtools::iterateFields (F &&fieldFunc, std::string const &line, std::size_t numFields=std::string::npos, std::size_t first=0) |
|
std::vector< std::string > | csvtools::getFields (std::string const &line, std::size_t numFields=std::string::npos, std::size_t first=0) |
|
void | csvtools::stripQuotes (std::string &field) |
|
void | csvtools::stripQuotes (std::vector< std::string > &fields) |
|
Header.
- Date
- 2016
- Author
- Sensics, Inc. http://sensics.com/osvr
Definition in file CSVTools.h.
#define CSV_VERIFY |
( |
|
X, |
|
|
|
MSG |
|
) |
| |
Value:do { \
if (!(X)) { \
throw std::logic_error(MSG); \
} \
} while (0)
Definition at line 88 of file CSVTools.h.