26 #include <boost/lexical_cast.hpp>
27 #include <boost/regex.hpp>
28 #include <boost/io/detail/quoted_manip.hpp>
37 using boost::regex_match;
40 if (type ==
typeid(
bool)) {
42 }
if (type ==
typeid(int32_t)) {
44 }
if (type ==
typeid(int64_t)) {
46 }
if (type ==
typeid(
float)) {
48 }
if (type ==
typeid(
double)) {
74 <<
" is not supported";
80 auto column_info = table.getColumnInfo();
81 for (
size_t i=0; i<column_info->size(); ++i) {
82 sizes.push_back(
quoted(column_info->getDescription(i).name).
size());
84 for (
auto row : table) {
85 for (
size_t i=0; i<sizes.size(); ++i) {
89 for (
auto&
s : sizes) {
96 regex whitespace_quotes{
".*[\\s\"].*"};
97 if (!regex_match(str, whitespace_quotes))