Vince's CSV Parser
csv_reader.hpp File Reference

Defines functionality needed for basic CSV parsing. More...

#include <algorithm>
#include <deque>
#include <fstream>
#include <iterator>
#include <memory>
#include <mutex>
#include <thread>
#include <sstream>
#include <string>
#include <vector>
#include "../external/mio.hpp"
#include "basic_csv_parser.hpp"
#include "common.hpp"
#include "data_type.hpp"
#include "csv_format.hpp"

Go to the source code of this file.

Classes

struct  csv::internals::GuessScore
 
class  csv::CSVReader
 Main class for parsing CSVs from files and in-memory sources. More...
 
class  csv::CSVReader::iterator
 An input iterator capable of handling large files. More...
 

Namespaces

 csv
 The all encompassing namespace.
 
 csv::internals
 Stuff that is generally not of interest to end-users.
 

Functions

std::string csv::internals::format_row (const std::vector< std::string > &row, csv::string_view delim)
 
std::vector< std::string > csv::internals::_get_col_names (csv::string_view head, CSVFormat format)
 Return a CSV's column names. More...
 
GuessScore csv::internals::calculate_score (csv::string_view head, CSVFormat format)
 
CSVGuessResult csv::internals::_guess_format (csv::string_view head, const std::vector< char > &delims)
 Guess the delimiter used by a delimiter-separated values file. More...
 
std::vector< std::string > csv::get_col_names (csv::string_view filename, CSVFormat format)
 Return a CSV's column names. More...
 
CSVGuessResult csv::guess_format (csv::string_view filename, const std::vector< char > &delims)
 Guess the delimiter used by a delimiter-separated values file.
 

Detailed Description

Defines functionality needed for basic CSV parsing.

Definition in file csv_reader.hpp.