2017-10-10 21:57:38 +00:00
|
|
|
#ifndef CSV_HPP
|
|
|
|
#define CSV_HPP
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
2017-10-10 23:12:40 +00:00
|
|
|
std::vector<std::string> csv_split(const char *s);
|
2017-10-10 21:57:38 +00:00
|
|
|
std::string csv_dequote(std::string s);
|
2017-10-10 23:12:40 +00:00
|
|
|
void readcsv(const char *fn, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping);
|
|
|
|
std::string csv_getline(FILE *f);
|
2017-10-10 23:22:21 +00:00
|
|
|
bool is_number(std::string const &s);
|
2017-10-10 21:57:38 +00:00
|
|
|
|
|
|
|
#endif
|