Home
last modified time | relevance | path

Searched refs:column_widths (Results 1 – 25 of 215) sorted by relevance

123456789

/dports/textproc/p5-Text-UnicodeBox/Text-UnicodeBox-0.03/lib/Text/UnicodeBox/
H A DTable.pm289 return if $self->column_widths;
302 my @column_widths = @_;
306 my @column_widths = @_;
307 if ($widths_over->(@column_widths) <= 0) {
308 $self->column_widths( \@column_widths );
340 my @column_index_by_width = sort { $column_widths[$b] <=> $column_widths[$a] } 0..$#column_widths;
342 while (! $widths_fit->(@column_widths)) {
365 my ($self, $lines, @column_widths) = @_;
367 @column_widths = @{ $self->column_widths } if ! @column_widths && $self->column_widths;
368 @column_widths = @{ $self->max_column_widths } if ! @column_widths;
[all …]
/dports/textproc/py-tablib/tablib-3.1.0/src/tablib/formats/
H A D_rst.py100 column_widths = (l for l in median_lens)
102 column_widths = (w - pad_len if w > pad_len else w for w in column_widths)
104 column_widths = [max(w, l) for w, l in zip(column_widths, word_lens)]
105 return column_widths
114 if column_widths is None:
116 border = ' '.join(['=' * w for w in column_widths])
122 column_widths,
165 if column_widths is None:
166 column_widths = cls._get_column_widths(dataset)
175 column_widths,
[all …]
/dports/devel/py-ujson/ujson-5.0.0/tests/
H A Dbenchmark.py89 column_widths = [max(len(r[0]) for r in benchmark_results)]
91 column_widths.append(max(10, len(library)))
93 columns = [" " * (width + 2) for width in column_widths]
100 + "-" * (column_widths[0] + 2)
109 columns[0] = (" " + name).ljust(column_widths[0] + 2)
112 columns = [None] * len(column_widths)
113 columns[0] = " encode".ljust(column_widths[0] + 2)
117 column_widths[i + 1] + 2
124 columns = [None] * len(column_widths)
125 columns[0] = " decode".ljust(column_widths[0] + 2)
[all …]
/dports/print/py-weasyprint/WeasyPrint-51/weasyprint/layout/
H A Dtables.py26 column_widths = table.column_widths
38 for width in column_widths:
538 column_widths = [None] * num_columns
544 column_widths[i] = column.width
563 if column_widths[j] is None:
566 width -= column_widths[j]
590 column_widths[i] = 0
600 column_widths = [w + extra_per_column for w in column_widths]
605 table.column_widths = column_widths
647 table.column_widths = []
[all …]
/dports/textproc/angle-grinder/angle-grinder-0.18.0/src/
H A Dprinter.rs136 column_widths: HashMap<String, usize>, field
164 column_widths: HashMap::new(), in new()
201 column_widths in projected_width()
220 self.column_widths.extend(new_column_widths); in format_record_as_columns()
228 self.column_widths = HashMap::new(); in format_record_as_columns()
276 column_widths: &HashMap<String, usize>, in resize_widths_to_fit()
300 column_widths.clone() in resize_widths_to_fit()
314 self.column_widths[column_name], in format_aggregate_row()
327 self.column_widths.extend(new_widths); in format_aggregate()
330 self.column_widths = self.resize_widths_to_fit(&self.column_widths, &aggregate.columns); in format_aggregate()
[all …]
/dports/multimedia/mkvtoolnix/mkvtoolnix-65.0.0/src/common/strings/
H A Dtable_formatter.cpp42 std::vector<uint64_t> column_widths(num_columns, 0ull); in format() local
45 column_widths[column] = get_width_in_em(to_wide(m_header[column])); in format()
49column_widths[column] = std::max<uint64_t>(column_widths[column], get_width_in_em(to_wide(row[colu… in format()
57 for (auto width : column_widths) { in format()
84 header_separator.emplace_back(column_widths[column], '-'); in format()
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/core/resource/
H A Dcustom_printer_base.py70 def Print(self, output, indent_length, column_widths): argument
121 def _GenerateColumnValue(self, index, row, indent_length, column_widths): argument
123 width = column_widths.widths[index]
145 def Print(self, output, indent_length, column_widths): argument
158 row[-1].Print(output, indent_length + INDENT_STEP, column_widths)
162 len(row) - 1, row, indent_length, column_widths))
193 def Print(self, output, indent_length, column_widths): argument
197 line.Print(output, indent_length, column_widths)
253 def Print(self, output, indent_length, column_widths): argument
263 del column_widths # Unused by Section.
[all …]
/dports/devel/p5-Perl-Metrics-Simple/Perl-Metrics-Simple-0.18/bin/
H A Dcountperl206 my $column_widths = get_column_widths(@main_from_each_file);
213 $list_of_subs_plain .= make_column( 'sub', $column_widths->{name} );
214 $list_of_subs_plain .= make_column( 'path', $column_widths->{path} );
215 $list_of_subs_plain .= make_column( 'size', $column_widths->{lines} );
220 .= make_list_of_subs_line_plain( $sub, $column_widths );
228 my ( $sub, $column_widths ) = @_;
234 .= make_column( $sub->{$col}, $column_widths->{$col} );
252 my $column_widths = {
261 if ( length( $sub->{$col} ) > $column_widths->{$col} ) {
262 $column_widths->{$col} = length( $sub->{$col} );
[all …]
/dports/net/cloud-init/cloud-init-21.4/cloudinit/
H A Dsimpletable.py20 self.column_widths = [0] * len(self.fields)
25 self.column_widths[i] = max(
27 self.column_widths[i])
39 ['-' * (w + 2) for w in self.column_widths]) + '+'
44 [col.center(self.column_widths[i] + 2)
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Windows.Forms/System.Windows.Forms/
H A DTableLayoutPanel.cs60 internal int[] column_widths; field in System.Windows.Forms.TableLayoutPanel
68 column_widths = new int[0]; in TableLayoutPanel()
189 return this.column_widths; in GetColumnWidths()
302 x += column_widths[i] + border_width; in OnPaintBackground()
369 x += column_widths[i] + 1; in DrawSingleBorder()
389 x += column_widths[i] + 2; in DrawInsetBorder()
412 x += column_widths[i] + 2; in DrawOutsetBorder()
438 x += column_widths[i] + 3; in DrawOutsetDoubleBorder()
455 x += column_widths[i] + 3; in DrawOutsetDoubleBorder()
479 x += column_widths[i] + 3; in DrawInsetDoubleBorder()
[all …]
/dports/games/prboom-plus/prboom-plus-2.5.1.3/src/TEXTSCREEN/
H A Dtxt_table.c112 unsigned int *column_widths; in TXT_CalcTableSize() local
120 column_widths = malloc(sizeof(int) * table->columns); in TXT_CalcTableSize()
122 CalcRowColSizes(table, row_heights, column_widths); in TXT_CalcTableSize()
128 table->widget.w += column_widths[x]; in TXT_CalcTableSize()
139 free(column_widths); in TXT_CalcTableSize()
441 unsigned int *column_widths; in TXT_TableLayout() local
463 column_widths[0] = table->widget.w; in TXT_TableLayout()
487 draw_x += column_widths[x]; in TXT_TableLayout()
494 free(column_widths); in TXT_TableLayout()
779 unsigned int *column_widths; in TXT_PageTable() local
[all …]
/dports/games/freeorion/freeorion-0.4.10.2/default/python/common/
H A Dprint_utils.py30 column_widths = (max(len(x) for x in word) for word in text_columns)
31 template = ' '.join('%%-%ss' % w for w in column_widths)
156 column_widths = [max(x) for x in header_and_columns]
163 result.append(self.__get_row_separator(self.__header_sep, column_widths))
167 … inner_separator.join(h.format_header(width) for h, width in zip(self.__headers, column_widths)),
170 result.append(self.__get_row_separator(self.__header_sep, column_widths))
176 zip(self.__headers, row, column_widths)
180 result.append(self.__get_row_separator(self.__bottom_sep, column_widths))
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/layout/ng/table/
H A Dng_table_layout_algorithm_helpers_test.cc151 LayoutUnit column_widths[] = {LayoutUnit(0.1), LayoutUnit(22.123456), in TEST_F() local
157 NGTableTypes::Column{LayoutUnit(0), column_widths[0], base::nullopt, in TEST_F()
160 NGTableTypes::Column{LayoutUnit(3.33333), column_widths[1], base::nullopt, in TEST_F()
163 NGTableTypes::Column{LayoutUnit(3.33333), column_widths[2], base::nullopt, in TEST_F()
166 NGTableTypes::Column{LayoutUnit(0), column_widths[3], base::nullopt, in TEST_F()
170 column_widths[0] + column_widths[1] + column_widths[2] + column_widths[3]; in TEST_F()
175 EXPECT_EQ(column_sizes[0], column_widths[0]); in TEST_F()
176 EXPECT_EQ(column_sizes[1], column_widths[1]); in TEST_F()
177 EXPECT_EQ(column_sizes[2], column_widths[2]); in TEST_F()
178 EXPECT_EQ(column_sizes[3], column_widths[3]); in TEST_F()
/dports/benchmarks/phoronix-test-suite/phoronix-test-suite-10.6.1/pts-core/objects/pts_Graph/
H A Dpts_SideViewTable.php81 $column_widths = array();
106 …$column_widths[$i] = ceil($this->text_string_width($column, $this->i['identifier_size']) * 1.02) +…
109 …ring_width($this->longest_row_identifier, $this->i['identifier_size']) + array_sum($column_widths);
173 …lumn_width_offset, 'y' => $this->i['top_heading_height'], 'width' => $column_widths[$i], 'height' …
175 …_text_element($col_string, array('x' => $column_width_offset + round($column_widths[$i] / 2) , 'y'…
176 $column_width_offset += $column_widths[$i];
185 $x = $column_width_offset + round($column_widths[$column_count] / 2);
193 …', array('x' => $column_width_offset, 'y' => $row_offset, 'width' => $column_widths[$column_count]…
210 $column_width_offset += $column_widths[$column_count];
/dports/dns/py-dns-lexicon/dns-lexicon-3.8.3/lexicon/
H A Dcli.py46 column_widths = [0, 0, 0, 0, 0]
51 if width > column_widths[idx]:
52 column_widths[idx] = width
56 array.insert(1, ["-" * column_widths[idx] for idx in range(len(column_widths))])
63 row_list.append(str(col).ljust(column_widths[idx]))
/dports/games/odamex/odamex-src-0.7.0/libraries/textscreen/
H A Dtxt_table.c112 unsigned int *column_widths; in TXT_CalcTableSize() local
120 column_widths = malloc(sizeof(int) * table->columns); in TXT_CalcTableSize()
122 CalcRowColSizes(table, row_heights, column_widths); in TXT_CalcTableSize()
128 table->widget.w += column_widths[x]; in TXT_CalcTableSize()
139 free(column_widths); in TXT_CalcTableSize()
489 unsigned int *column_widths; in TXT_TableLayout() local
511 column_widths[0] = table->widget.w; in TXT_TableLayout()
535 draw_x += column_widths[x]; in TXT_TableLayout()
542 free(column_widths); in TXT_TableLayout()
871 unsigned int *column_widths; in TXT_PageTable() local
[all …]
/dports/games/ecwolf/ecwolf-1.3.3-src/textscreen/
H A Dtxt_table.c112 unsigned int *column_widths; in TXT_CalcTableSize() local
120 column_widths = malloc(sizeof(int) * table->columns); in TXT_CalcTableSize()
122 CalcRowColSizes(table, row_heights, column_widths); in TXT_CalcTableSize()
128 table->widget.w += column_widths[x]; in TXT_CalcTableSize()
139 free(column_widths); in TXT_CalcTableSize()
489 unsigned int *column_widths; in TXT_TableLayout() local
511 column_widths[0] = table->widget.w; in TXT_TableLayout()
535 draw_x += column_widths[x]; in TXT_TableLayout()
542 free(column_widths); in TXT_TableLayout()
871 unsigned int *column_widths; in TXT_PageTable() local
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/qutebrowser/completion/models/
H A Dmiscmodels.py34 model = completionmodel.CompletionModel(column_widths=(20, 60, 20))
43 model = completionmodel.CompletionModel(column_widths=(20, 70, 10))
65 model = completionmodel.CompletionModel(column_widths=(30, 70, 0))
83 model = completionmodel.CompletionModel(column_widths=(30, 70, 0))
121 model = completionmodel.CompletionModel(column_widths=(6, 40, 46, 8))
200 model = completionmodel.CompletionModel(column_widths=(6, 30, 64))
222 model = completionmodel.CompletionModel(column_widths=(100, 0, 0))
243 model = completionmodel.CompletionModel(column_widths=(5, 36, 50, 9))
290 model = completionmodel.CompletionModel(column_widths=(6, 84, 10))
312 model = completionmodel.CompletionModel(column_widths=(10, 10, 80))
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/bq/
H A Dtable_formatter.py214 self.column_widths = []
343 column_alignments=None, column_widths=None): argument
364 column_widths = column_widths or self.column_widths
370 *map(curried_format, entries, column_widths, column_alignments))
383 for width in self.column_widths)
408 column_widths = (
410 self.column_widths = [
412 for width, current in zip(column_widths, self.column_widths)
433 self.column_widths.append(max(len(line) for line in lines))
/dports/finance/beancount/beancount-2.3.3/beancount/utils/
H A Dtable.py174 column_widths = compute_table_widths(itertools.chain([table.header],
181 for column, width in zip(table.columns, column_widths):
192 separator = line_format.format(*[('-' * width) for width in column_widths])
245 column_widths = [len(cell) for cell in first_row]
251 if cell_len > column_widths[i]:
252 column_widths[i] = cell_len
255 return column_widths
/dports/devel/git-lab/git-lab-68c892f1f5268652d23cea04b1af294b8fc32dbb/lab/
H A Dtable.py67 column_widths: List[int] = []
69 column_widths.append(self.__column_max_width(col))
80 textbuffer += (column_widths[grid_x] - len(column[grid_y]) + 2) * " "
82 textbuffer += (column_widths[grid_x] + 2) * " "
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/textscreen/
H A Dtxt_table.c162 *w += column_widths[x1]; in CalculateWidgetDimensions()
252 unsigned int *column_widths; in TXT_CalcTableSize() local
262 CalcRowColSizes(table, row_heights, column_widths); in TXT_CalcTableSize()
268 table->widget.w += column_widths[x]; in TXT_CalcTableSize()
279 free(column_widths); in TXT_CalcTableSize()
690 unsigned int *column_widths; in TXT_TableLayout() local
713 column_widths[0] = table->widget.w; in TXT_TableLayout()
741 draw_x += column_widths[x]; in TXT_TableLayout()
748 free(column_widths); in TXT_TableLayout()
1170 unsigned int *column_widths; in TXT_PageTable() local
[all …]
/dports/games/chocolate-doom/chocolate-doom-3.0.1/textscreen/
H A Dtxt_table.c162 *w += column_widths[x1]; in CalculateWidgetDimensions()
252 unsigned int *column_widths; in TXT_CalcTableSize() local
262 CalcRowColSizes(table, row_heights, column_widths); in TXT_CalcTableSize()
268 table->widget.w += column_widths[x]; in TXT_CalcTableSize()
279 free(column_widths); in TXT_CalcTableSize()
690 unsigned int *column_widths; in TXT_TableLayout() local
713 column_widths[0] = table->widget.w; in TXT_TableLayout()
741 draw_x += column_widths[x]; in TXT_TableLayout()
748 free(column_widths); in TXT_TableLayout()
1173 unsigned int *column_widths; in TXT_PageTable() local
[all …]
/dports/textproc/R-cran-openxlsx/openxlsx/src/
H A Dhelper_functions.cpp54 NumericVector column_widths(k); in calc_column_widths() local
61 column_widths[i] = max(wTmp * thisColWidths / baseFontCharWidth); in calc_column_widths()
64 column_widths[column_widths < minW] = minW; in calc_column_widths()
65 column_widths[column_widths > maxW] = maxW; in calc_column_widths()
68 column_widths.attr("names") = unique_cell_cols; in calc_column_widths()
70 return(wrap(column_widths)); in calc_column_widths()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Windows.Forms/System.Windows.Forms.Layout/
H A DTableLayout.cs281 panel.column_widths[index] = (int)cs.Width; in CalculateColumnRowSizes()
300 int max_width = panel.column_widths[index]; in CalculateColumnRowSizes()
324 max_width -= panel.column_widths[i]; in CalculateColumnRowSizes()
327 if (max_width > panel.column_widths[index]) in CalculateColumnRowSizes()
329 max_width -= panel.column_widths[index]; in CalculateColumnRowSizes()
330 panel.column_widths[index] += max_width; in CalculateColumnRowSizes()
358 - panel.column_widths[index]); in CalculateColumnRowSizes()
361 panel.column_widths[index] += width_change; in CalculateColumnRowSizes()
383 panel.column_widths[col] += total_width; in CalculateColumnRowSizes()
527 int column_width = panel.column_widths[x]; in LayoutControls()
[all …]

123456789