MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / expandMaxWidthsAccordingToLabels

Function expandMaxWidthsAccordingToLabels

quest/src/core/printer.cpp:632–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631
632void expandMaxWidthsAccordingToLabels(vector<size_t> &widths, vector<string> &labels) {
633
634 if (labels.empty())
635 return;
636
637 for (size_t c=0; c<widths.size(); c++) {
638 size_t labelWidth = labels[c].size();
639 if (labelWidth > widths[c])
640 widths[c] = labelWidth;
641 }
642}
643
644
645void printPerRowIndent(string baseIndent, size_t row, string indentPerRow) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected