\n");
p_eol = rows.find('\n');
if (p_eol != std::string::npos)
row.assign(rows.substr(0,p_eol));
else
row.assign(rows);
while(!row.empty()) {
cols++;
if (row[0] == '"') {
p_eof = row.find('"', 1);
field.assign(row.substr(1, p_eof - 1));
p_eof = row.find(sepchar, p_eof);
}
else {
p_eof = row.find(sepchar);
field.assign(row.substr(0, p_eof));
}
if (field.empty()) field.assign("
");
p = 0;
while((p = field.find('"', p)) != std::string::npos)
field.replace(p, 1,""");
html_text.append("").append(field).append(" | \n");
if (p_eof != std::string::npos)
row.erase(0, p_eof + 1);
else
row.clear();
}
while (cols < ncols) {
html_text.append(" | \n");
cols++;
}
html_text.append("
\n");
if (p_eol != std::string::npos)
rows.erase(0,p_eol+1);
else
rows.clear();
}
html_text.append("