29 #include <boost/lexical_cast.hpp>
31 #if BOOST_VERSION < 107300
32 #include <boost/io/detail/quoted_manip.hpp>
34 #include <boost/io/quoted.hpp>
40 using NdArray::NdArray;
55 auto column_info = table.getColumnInfo();
56 for (
size_t i = 0; i < column_info->size(); ++i) {
57 sizes.push_back(
quoted(column_info->getDescription(i).name).size());
59 for (
const auto& row : table) {
60 for (
size_t i = 0; i < sizes.size(); ++i) {
70 if (!regex_match(str, whitespace_quotes))
const std::vector< std::pair< std::string, std::type_index > > KeywordTypeMap
std::string typeToKeyword(std::type_index type)
Converts a type to its string representation.
std::string quoted(const std::string &str)
std::vector< size_t > calculateColumnLengths(const Table &table)
Calculates the sizes in characters each column of the table needs.