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>
45 if (p->second == type) {
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 (
auto row : table) {
60 for (
size_t i = 0; i < sizes.size(); ++i) {
64 for (
auto&
s : sizes) {
72 if (!regex_match(str, whitespace_quotes))
NdArray(std::vector< size_t > shape_)
std::vector< size_t > calculateColumnLengths(const Table &table)
Calculates the sizes in characters each column of the table needs.
const std::vector< std::pair< std::string, std::type_index > > KeywordTypeMap
std::string quoted(const std::string &str)
std::string typeToKeyword(std::type_index type)
Converts a type to its string representation.