{rendered width in characters, rendered height in lines} of the printed table -- NOT the number of data rows/columns. See Table::dimensions() for that.
| 94 | // table -- NOT the number of data rows/columns. See Table::dimensions() |
| 95 | // for that. |
| 96 | std::pair<size_t, size_t> shape() { |
| 97 | std::pair<size_t, size_t> result{0, 0}; |
| 98 | std::stringstream stream; |
| 99 | print(stream); |
| 100 | auto buffer = stream.str(); |
| 101 | auto lines = Format::split_lines(buffer, "\n", "", true); |
| 102 | if (lines.size()) { |
| 103 | result = {get_sequence_length(lines[0], "", true), lines.size()}; |
| 104 | } |
| 105 | return result; |
| 106 | } |
| 107 | |
| 108 | Format &format() { return format_; } |
| 109 |
nothing calls this directly
no test coverage detected