| 679 | |
| 680 | |
| 681 | void printContiguousRowsInTwoQuadrants( |
| 682 | stringmatr left, vector<size_t> leftColWidths, |
| 683 | stringmatr right, vector<size_t> rightColWidths, |
| 684 | vector<string> rowLabels, |
| 685 | string indent, string indentPerRow, size_t rowOffsetForIndent |
| 686 | ) { |
| 687 | for (size_t r=0; r<left.size(); r++) { |
| 688 | printPerRowIndent(indent, r + rowOffsetForIndent, indentPerRow); |
| 689 | |
| 690 | auto rightRow = (right.empty())? vector<string>{} : right[r]; |
| 691 | printRowInTwoQuadrants(left[r], leftColWidths, rightRow, rightColWidths); |
| 692 | |
| 693 | // print optional row label, using trailing space left by above row print |
| 694 | cout << (rowLabels.empty()? "" : rowLabels[r]); |
| 695 | cout << endl; |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | |
| 700 | void printMatrixInFourQuadrants( |
no test coverage detected