Lines Matching full:row

141 ///     of a row or not.  Values in the last column should not be padded to
164 /// \param row The row containing the cell to be refilled.
165 /// \param widths The widths of the row.
171 refill_cell(const text::table_row& row, const text::widths_vector& widths, in refill_cell() argument
175 const std::vector< std::string > rows = text::refill(row[column], in refill_cell()
179 textual_rows.resize(rows.size(), text::table_row(row.size())); in refill_cell()
182 for (text::table_row::size_type j = 0; j < row.size(); ++j) { in refill_cell()
183 const bool is_last = j == row.size() - 1; in refill_cell()
195 /// Formats a single table row.
197 /// \param row The row to format.
203 /// \return The textual lines that contain the formatted row.
205 format_row(const text::table_row& row, const text::widths_vector& widths, in format_row() argument
208 PRE(row.size() == widths.size()); in format_row()
210 std::vector< text::table_row > textual_rows(1, text::table_row(row.size())); in format_row()
212 for (text::table_row::size_type column = 0; column < row.size(); ++column) { in format_row()
213 if (widths[column] > row[column].length()) in format_row()
214 textual_rows[0][column] = pad_cell(row[column], widths[column], in format_row()
215 column == row.size() - 1); in format_row()
217 refill_cell(row, widths, column, textual_rows); in format_row()
292 /// Adds a row to the table.
294 /// \param row The row to be added. This row must have the same amount of
297 text::table::add_row(const table_row& row) in add_row() argument
299 PRE(row.size() == _column_widths.size()); in add_row()
300 _rows.push_back(row); in add_row()
302 for (table_row::size_type i = 0; i < row.size(); ++i) in add_row()
303 if (_column_widths[i] < row[i].length()) in add_row()
304 _column_widths[i] = row[i].length(); in add_row()