Home
last modified time | relevance | path

Searched refs:width (Results 1 – 18 of 18) sorted by relevance

/coreutils/src/
Dfold.c118 fold_file (char const *filename, size_t width) in fold_file() argument
160 if (column > width) in fold_file()
240 size_t width = 80; in main() local
281 width = xdectoumax (optarg, 1, SIZE_MAX - TAB_WIDTH - 1, "", in main()
295 ok = fold_file ("-", width); in main()
300 ok &= fold_file (argv[i], width); in main()
Dseq.c127 size_t width; member
169 ret.width = 0; in scan_arg()
181 ret.width = strlen (arg); in scan_arg()
188 ret.width += (fraction_len == 0 /* #. -> # */ in scan_arg()
202 ret.width -= strlen (arg) - (e - arg); in scan_arg()
209 ret.width++; in scan_arg()
212 ret.width++; in scan_arg()
218 ret.width--; /* discount space for '.' */ in scan_arg()
221 ret.width += exponent; in scan_arg()
374 size_t first_width = first.width + (prec - first.precision); in get_default_format()
[all …]
Dwc.c527 int width = c32width (wide_char); in wc() local
528 if (width > 0) in wc()
529 linepos += width; in wc()
692 int width = 1; in compute_number_width() local
713 width++; in compute_number_width()
714 if (width < minimum_width) in compute_number_width()
715 width = minimum_width; in compute_number_width()
718 return width; in compute_number_width()
Dpr.c2642 int width; in char_to_clump() local
2651 width = TAB_WIDTH (chars_per_c, input_position); in char_to_clump()
2655 for (i = width; i; --i) in char_to_clump()
2657 chars = width; in char_to_clump()
2670 width = 4; in char_to_clump()
2681 width = 2; in char_to_clump()
2688 width = 4; in char_to_clump()
2698 width = -1; in char_to_clump()
2704 width = 0; in char_to_clump()
2711 width = 1; in char_to_clump()
[all …]
Dprintf.c572 intmax_t width = vstrtoimax (*argv); in print_formatted() local
573 if (INT_MIN <= width && width <= INT_MAX) in print_formatted()
574 field_width = width; in print_formatted()
Dls.c233 size_t width; member
260 int needs_general_quoting, size_t *width,
3941 return f->width in fileinfo_name_width()
3942 ? f->width in fileinfo_name_width()
3961 DEFINE_SORT_FUNCTIONS (width, cmp_width) in DEFINE_SORT_FUNCTIONS()
4028 LIST_SORTFUNCTION_VARIANTS (width),
4088 f->width = fileinfo_name_width (f); in update_current_files_info()
4201 static int width = -1; in long_time_expected_width() local
4203 if (width < 0) in long_time_expected_width()
4221 width = mbsnwidth (buf, len, MBSWIDTH_FLAGS); in long_time_expected_width()
[all …]
Ddf.c170 int width; /* Auto adjusted (up) widths used to align columns. */ member
395 int width = mbswidth (cell, MBSWIDTH_FLAGS); in print_table() local
396 int fill = width < 0 ? 0 : columns[col]->width - width; in print_table()
642 columns[col]->width = MAX (columns[col]->width, cell_width); in get_header()
1256 columns[col]->width = MAX (columns[col]->width, cell_width); in get_dev()
Dstat.c732 int width = 0; in out_epoch_sec() local
764 width = (lwidth <= INT_MAX ? lwidth : INT_MAX); in out_epoch_sec()
765 if (1 < width) in out_epoch_sec()
769 int w_d = (decimal_point_len < width in out_epoch_sec()
770 ? width - decimal_point_len in out_epoch_sec()
823 int trailing_width = (ilen < width && decimal_point_len < width - ilen in out_epoch_sec()
824 ? width - ilen - decimal_point_len - prec in out_epoch_sec()
Dod.c109 char const *fmt, int width, int pad);
433 FMT_STRING_DECL, int width, int pad) \
441 int adjusted_width = pad_remaining - next_pad + width; \
503 int width, int pad) in print_named_ascii() argument
526 xprintf ("%*s", pad_remaining - next_pad + width, s); in print_named_ascii()
533 MAYBE_UNUSED char const *unused_fmt_string, int width, in print_ascii() argument
585 xprintf ("%*s", pad_remaining - next_pad + width, s); in print_ascii()
Dsort.c2266 size_t width = mbsnwidth (text, lim - text, 0); in debug_width() local
2268 width += (*text++ == '\t'); in debug_width()
2269 return width; in debug_width()
2276 mark_key (size_t offset, size_t width) in mark_key() argument
2281 if (!width) in mark_key()
2287 while (--width); in mark_key()
2355 size_t width = debug_width (beg, lim); in debug_key() local
2356 mark_key (offset, width); in debug_key()
Dfactor.c2416 size_t width = sizeof (buf) - (umaxstr - buf) - 1; in lbuf_putint() local
2417 size_t z = width; in lbuf_putint()
2422 memcpy (lbuf.end, umaxstr, width); in lbuf_putint()
2423 lbuf.end += width; in lbuf_putint()
/coreutils/man/
Dfold.x2 fold \- wrap each input line to fit in specified width
/coreutils/tests/ls/
Dsort-width-option.sh30 ls --sort=width subdir > out || fail=1
/coreutils/tests/basenc/
Dbase64.pl53 my ($s, $width) = @_;
54 $s =~ s/(.{$width})/$1\n/g;
/coreutils/tests/sort/
Dsort-debug-warn.sh25 sort: key 1 has zero width and will be ignored
28 sort: key 1 has zero width and will be ignored
138 sort: key 2 has zero width and will be ignored
/coreutils/doc/
Dcoreutils.texi255 * fold invocation:: Wrap input lines to fit in specified width
1953 @itemx --number-width=@var{number}
1955 @opindex --number-width
2148 @itemx --width[=@var{n}]
2150 @opindex --width
2443 * fold invocation:: Wrap input lines to fit in specified width.
2523 @item -@var{width}
2524 @itemx -w @var{width}
2525 @itemx --width=@var{width}
2526 @opindex -@var{width}
[all …]
/coreutils/
DNEWS266 stty now wraps output appropriately for the terminal width.
285 in others, where they exceed integer width limits, they now elicit
620 ls now accepts the --sort=width option, to sort by file name width.
900 display width between 6 and 12 inclusive. Previously this would have
1959 the output numbers are properly aligned and of the correct width.
3470 to correctly print all numbers to the same width.
3581 padding the input out to the least common multiple width.
4882 ptx now diagnoses invalid values for its --width=N (-w)
5222 scripts that expect fixed-width columns, but such shell scripts were
5240 ls --width=N (for very large N) is no longer subject to an address
[all …]
/coreutils/tests/
Dlocal.mk652 tests/ls/sort-width-option.sh \