Lines Matching full:column

45 /// Applies user overrides to the column widths of a table.
47 /// \param table The table from which to calculate the column widths.
48 /// \param user_widths The column widths provided by the user. This vector must
68 "User-provided column widths must be larger than the " in override_column_widths()
69 "column contents (except for the width_refill column)"); in override_column_widths()
78 /// Locates the refill column, if any.
82 /// be width_refill, which is the column we are looking for.
84 /// \return The index of the refill column with a width_refill width if any, or
85 /// otherwise the index of the last column (which is the default refill column).
100 /// On output, a column of the widths vector is truncated to a shorter length
106 /// width_refill; if not, a default column is refilled.
140 /// \param is_last Whether the text being processed belongs to the last column
141 /// of a row or not. Values in the last column should not be padded to
166 /// \param column The column being refilled.
172 const text::table_row::size_type column, in refill_cell() argument
175 const std::vector< std::string > rows = text::refill(row[column], in refill_cell()
176 widths[column]); in refill_cell()
184 if (j == column) in refill_cell()
201 /// \param separator The column separator to use.
212 for (text::table_row::size_type column = 0; column < row.size(); ++column) { in format_row() local
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()
252 /// Gets the width of a column.
254 /// The returned value is not valid if add_row() is called again, as the column
257 /// \param column The index of the column of which to get the width. Must be
260 /// \return The width of a column.
262 text::table::column_width(const widths_vector::size_type column) const in column_width()
264 PRE(column < _column_widths.size()); in column_width()
265 return _column_widths[column]; in column_width()
328 /// Column width to denote that the column has to fit all of its cells.
332 /// Column width to denote that the column can be refilled to fit the table.
345 /// Sets the width of a column.
348 /// widest cell in the column. One of the columns can have a width of
349 /// width_refill, which indicates that the column will be refilled if the table
352 /// \param column The index of the column to set the width for.
353 /// \param width The width to set the column to.
357 text::table_formatter::set_column_width(const table_row::size_type column, in set_column_width() argument
363 if (i != column) in set_column_width()
365 "Only one column width can be set to width_refill"); in set_column_width()
370 if (_column_widths.size() < column + 1) in set_column_width()
371 _column_widths.resize(column + 1, width_auto); in set_column_width()
372 _column_widths[column] = width; in set_column_width()