width 132 lib/strutil.h /*I*/ const char *(*term_trim) (const char *text, int width); width 406 lib/strutil.h const char *str_fit_to_term (const char *text, int width, align_crt_t just_mode); width 413 lib/strutil.h const char *str_term_trim (const char *text, int width); width 421 lib/strutil.h const char *str_term_substring (const char *text, int start, int width); width 454 lib/strutil.h const char *str_trunc (const char *text, int width); width 451 lib/strutil/strutil.c str_fit_to_term (const char *text, int width, align_crt_t just_mode) width 453 lib/strutil/strutil.c return used_class.fit_to_term (text, width, just_mode); width 459 lib/strutil/strutil.c str_term_trim (const char *text, int width) width 461 lib/strutil/strutil.c return used_class.term_trim (text, width); width 467 lib/strutil/strutil.c str_term_substring (const char *text, int start, int width) width 469 lib/strutil/strutil.c return used_class.term_substring (text, start, width); width 788 lib/strutil/strutil.c str_trunc (const char *text, int width) width 790 lib/strutil/strutil.c return used_class.trunc (text, width); width 938 lib/strutil/strutil.c int width; width 947 lib/strutil/strutil.c width = str_term_width1 (p); width 948 lib/strutil/strutil.c if (width > *columns) width 949 lib/strutil/strutil.c *columns = width; width 310 lib/strutil/strutil8bit.c str_8bit_fit_to_term (const char *text, int width, align_crt_t just_mode) width 323 lib/strutil/strutil8bit.c if ((int) length <= width) width 329 lib/strutil/strutil8bit.c ident = (width - length) / 2; width 332 lib/strutil/strutil8bit.c ident = width - length; width 347 lib/strutil/strutil8bit.c if (width - length - ident > 0) width 349 lib/strutil/strutil8bit.c if (remain <= width - length - ident) width 351 lib/strutil/strutil8bit.c memset (actual, ' ', width - length - ident); width 352 lib/strutil/strutil8bit.c actual += width - length - ident; width 357 lib/strutil/strutil8bit.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 366 lib/strutil/strutil8bit.c pos += length - width + 1; width 375 lib/strutil/strutil8bit.c ident = (length - width) / 2; width 378 lib/strutil/strutil8bit.c ident = length - width; width 385 lib/strutil/strutil8bit.c for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) width 399 lib/strutil/strutil8bit.c str_8bit_term_trim (const char *text, int width) width 410 lib/strutil/strutil8bit.c if (width > 0) width 414 lib/strutil/strutil8bit.c if (width >= (int) length) width 419 lib/strutil/strutil8bit.c else if (width <= 3) width 421 lib/strutil/strutil8bit.c memset (actual, '.', width); width 422 lib/strutil/strutil8bit.c actual += width; width 430 lib/strutil/strutil8bit.c for (pos = length - width + 3; pos < length && remain > 1; pos++, actual++, remain--) width 467 lib/strutil/strutil8bit.c str_8bit_term_substring (const char *text, int start, int width) width 482 lib/strutil/strutil8bit.c for (pos = start; pos < length && width > 0 && remain > 1; width 483 lib/strutil/strutil8bit.c pos++, width--, actual++, remain--) width 487 lib/strutil/strutil8bit.c for (; width > 0 && remain > 1; actual++, remain--, width--) width 497 lib/strutil/strutil8bit.c str_8bit_trunc (const char *text, int width) width 509 lib/strutil/strutil8bit.c if ((int) length > width) width 511 lib/strutil/strutil8bit.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 520 lib/strutil/strutil8bit.c pos += length - width + 1; width 261 lib/strutil/strutilascii.c str_ascii_fit_to_term (const char *text, int width, align_crt_t just_mode) width 274 lib/strutil/strutilascii.c if ((int) length <= width) width 280 lib/strutil/strutilascii.c ident = (width - length) / 2; width 283 lib/strutil/strutilascii.c ident = width - length; width 304 lib/strutil/strutilascii.c if (width - length - ident > 0) width 306 lib/strutil/strutilascii.c if (remain <= width - length - ident) width 308 lib/strutil/strutilascii.c memset (actual, ' ', width - length - ident); width 309 lib/strutil/strutilascii.c actual += width - length - ident; width 315 lib/strutil/strutilascii.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 327 lib/strutil/strutilascii.c pos += length - width + 1; width 341 lib/strutil/strutilascii.c ident = (length - width) / 2; width 344 lib/strutil/strutilascii.c ident = length - width; width 353 lib/strutil/strutilascii.c for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) width 371 lib/strutil/strutilascii.c str_ascii_term_trim (const char *text, int width) width 382 lib/strutil/strutilascii.c if (width > 0) width 386 lib/strutil/strutilascii.c if (width >= (int) length) width 395 lib/strutil/strutilascii.c else if (width <= 3) width 397 lib/strutil/strutilascii.c memset (actual, '.', width); width 398 lib/strutil/strutilascii.c actual += width; width 407 lib/strutil/strutilascii.c for (pos = length - width + 3; pos < length && remain > 1; pos++, actual++, remain--) width 447 lib/strutil/strutilascii.c str_ascii_term_substring (const char *text, int start, int width) width 463 lib/strutil/strutilascii.c for (pos = start; pos < length && width > 0 && remain > 1; width 464 lib/strutil/strutilascii.c pos++, width--, actual++, remain--) width 472 lib/strutil/strutilascii.c for (; width > 0 && remain > 1; actual++, remain--, width--) width 482 lib/strutil/strutilascii.c str_ascii_trunc (const char *text, int width) width 494 lib/strutil/strutilascii.c if ((int) length > width) width 497 lib/strutil/strutilascii.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 509 lib/strutil/strutilascii.c pos += length - width + 1; width 55 lib/strutil/strutilutf8.c size_t width; width 448 lib/strutil/strutilutf8.c result.width = 0; width 462 lib/strutil/strutilutf8.c result.width++; width 480 lib/strutil/strutilutf8.c result.width++; width 482 lib/strutil/strutilutf8.c result.width++; width 489 lib/strutil/strutilutf8.c result.width++; width 499 lib/strutil/strutilutf8.c result.width++; width 678 lib/strutil/strutilutf8.c str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode) width 690 lib/strutil/strutilutf8.c if (pre_form->width <= (gsize) width) width 696 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 699 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 708 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); width 713 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); width 717 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); width 719 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); width 726 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 729 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 738 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 739 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 751 lib/strutil/strutilutf8.c str_utf8_term_trim (const char *text, int width) width 757 lib/strutil/strutilutf8.c if (width < 1) width 770 lib/strutil/strutilutf8.c if ((gsize) width >= pre_form->width) width 772 lib/strutil/strutilutf8.c else if (width <= 3) width 774 lib/strutil/strutilutf8.c memset (tool.actual, '.', width); width 775 lib/strutil/strutilutf8.c tool.actual += width; width 776 lib/strutil/strutilutf8.c tool.remain -= width; width 785 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 3); width 803 lib/strutil/strutilutf8.c return result->width; width 828 lib/strutil/strutilutf8.c str_utf8_term_substring (const char *text, int start, int width) width 847 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 848 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 859 lib/strutil/strutilutf8.c str_utf8_trunc (const char *text, int width) width 872 lib/strutil/strutilutf8.c if (pre_form->width <= (gsize) width) width 877 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); width 881 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); width 917 lib/strutil/strutilutf8.c int width = 0; width 930 lib/strutil/strutilutf8.c width++; width 932 lib/strutil/strutilutf8.c width++; width 937 lib/strutil/strutilutf8.c width++; width 944 lib/strutil/strutilutf8.c width++; width 947 lib/strutil/strutilutf8.c if ((gsize) width > pos) width 186 lib/widget/buttonbar.c int width; width 189 lib/widget/buttonbar.c width = buttonbar_get_button_width (bb, i); width 190 lib/widget/buttonbar.c if (width <= 0) width 198 lib/widget/buttonbar.c tty_print_string (str_fit_to_term (text, width - 2, J_LEFT_FIT)); width 96 lib/widget/groupbox.c groupbox_new (int y, int x, int height, int width, const char *title) width 103 lib/widget/groupbox.c widget_init (w, y, x, height, width, groupbox_callback, NULL); width 27 lib/widget/groupbox.h WGroupbox *groupbox_new (int y, int x, int height, int width, const char *title); width 156 lib/widget/history.c size_t width; width 158 lib/widget/history.c width = str_term_width1 (text); width 159 lib/widget/history.c hd->max_width = MAX (width, hd->max_width); width 143 lib/widget/hline.c hline_new (int y, int x, int width) width 151 lib/widget/hline.c widget_init (w, y, x, lines, width < 0 ? 1 : width, hline_callback, NULL); width 153 lib/widget/hline.c l->auto_adjust_cols = (width < 0); width 29 lib/widget/hline.h WHLine *hline_new (int y, int x, int width); width 988 lib/widget/input.c input_new (int y, int x, const int *colors, int width, const char *def_text, width 996 lib/widget/input.c widget_init (w, y, x, 1, width, input_callback, input_mouse_callback); width 1009 lib/widget/input.c in->current_max_size = width + 1; width 548 lib/widget/listbox.c listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback) width 558 lib/widget/listbox.c widget_init (w, y, x, height, width, listbox_callback, listbox_mouse_callback); width 63 lib/widget/listbox.h WListbox *listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback); width 86 lib/widget/quick.c int *width) width 108 lib/widget/quick.c *width = MAX (label.widget->cols, in.widget->cols); width 119 lib/widget/quick.c *width = label.widget->cols + in.widget->cols + 1; width 132 lib/widget/quick.c *width = label.widget->cols + in.widget->cols + 1; width 144 lib/widget/quick.c *width = MAX (label.widget->cols, in.widget->cols); width 200 lib/widget/quick.c int width = 0; width 210 lib/widget/quick.c width = item.widget->cols; width 212 lib/widget/quick.c width += 2; width 214 lib/widget/quick.c width2 = MAX (width2, width); width 216 lib/widget/quick.c width1 = MAX (width1, width); width 227 lib/widget/quick.c width = item.widget->cols; width 229 lib/widget/quick.c width += 2; width 231 lib/widget/quick.c width2 = MAX (width2, width); width 233 lib/widget/quick.c width1 = MAX (width1, width); width 241 lib/widget/quick.c quick_create_labeled_input (widgets, &y, x, quick_widget, &width); width 248 lib/widget/quick.c width = item.widget->cols; width 251 lib/widget/quick.c width += 2; width 253 lib/widget/quick.c width2 = MAX (width2, width); width 255 lib/widget/quick.c width1 = MAX (width1, width); width 262 lib/widget/quick.c width = item.widget->cols; width 264 lib/widget/quick.c width += 2; width 266 lib/widget/quick.c width2 = MAX (width2, width); width 268 lib/widget/quick.c width1 = MAX (width1, width); width 288 lib/widget/quick.c width = item.widget->cols; width 290 lib/widget/quick.c width += 2; width 292 lib/widget/quick.c width2 = MAX (width2, width); width 294 lib/widget/quick.c width1 = MAX (width1, width); width 471 lib/widget/quick.c int width = column_width; width 474 lib/widget/quick.c width -= 4; width 481 lib/widget/quick.c item->widget->cols = width - label->cols - 1; width 489 lib/widget/quick.c item->widget->cols = width - label->cols - 1; width 498 lib/widget/quick.c item->widget->cols = width; width 228 lib/widget/radio.c int width; width 231 lib/widget/radio.c width = hotkey_width (r->texts[i]); width 232 lib/widget/radio.c wmax = MAX (width, wmax); width 2525 src/diffviewer/ydiff.c dview_display_file (const WDiff * dview, diff_place_t ord, int r, int c, int height, int width) width 2546 src/diffviewer/ydiff.c if (xwidth > width && display_symbols) width 2551 src/diffviewer/ydiff.c if (xwidth > width && display_numbers) width 2553 src/diffviewer/ydiff.c xwidth = width; width 2554 src/diffviewer/ydiff.c display_numbers = width; width 2559 src/diffviewer/ydiff.c width -= xwidth; width 2560 src/diffviewer/ydiff.c if (width < 0) width 2561 src/diffviewer/ydiff.c width = 0; width 2564 src/diffviewer/ydiff.c if ((int) sizeof (buf) <= width || (int) sizeof (buf) <= nwidth) width 2605 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2608 src/diffviewer/ydiff.c k = width; width 2615 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2664 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2667 src/diffviewer/ydiff.c k = width; width 2671 src/diffviewer/ydiff.c cvt_fget (f, p->u.off, buf, width, skip, tab_size, show_cr); width 2686 src/diffviewer/ydiff.c memset (buf, ' ', width); width 2687 src/diffviewer/ydiff.c buf[width] = '\0'; width 2692 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2734 src/diffviewer/ydiff.c k = width; width 2735 src/diffviewer/ydiff.c if (width < xwidth - 1) width 2749 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, width, J_LEFT_FIT)); width 2758 src/diffviewer/ydiff.c dview_status (const WDiff * dview, diff_place_t ord, int width, int c) width 2771 src/diffviewer/ydiff.c filename_width = width - 24; width 1695 src/editor/edit.c off_t blocklen = -1, width = 0; width 1708 src/editor/edit.c width = pn == NULL ? blocklen : pn - (char *) data; width 1720 src/editor/edit.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 1747 src/editor/edit.c *col2 = col + width; width 1238 src/editor/editcmd.c int width; width 1319 src/editor/editcmd.c width = str_term_width1 (temp->str); width 1320 src/editor/editcmd.c *max_width = MAX (*max_width, width); width 1430 src/editor/editcmd.c edit_insert_column_of_text (WEdit * edit, unsigned char *data, off_t size, long width, width 1450 src/editor/editcmd.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 1476 src/editor/editcmd.c *col2 = col + width; width 153 src/file_history.c size_t width; width 155 src/file_history.c width = str_term_width1 (fhd->file_name); width 156 src/file_history.c hd->max_width = MAX (width, hd->max_width); width 223 src/filemanager/chattr.c int width; width 365 src/filemanager/chattr.c int width, cols; width 367 src/filemanager/chattr.c width = str_term_width1 (filename); width 368 src/filemanager/chattr.c cols = MAX (width, (int) check_attr_num); width 374 src/filemanager/chattr.c fat->filename_width = width; width 880 src/filemanager/chattr.c chattrboxes_new (int y, int x, int height, int width) width 890 src/filemanager/chattr.c group_init (GROUP (cb), y, x, height, width, chattrboxes_callback, chattrboxes_mouse_callback); width 917 src/filemanager/chattr.c int width; width 925 src/filemanager/chattr.c width = 4 + str_term_width1 (check_attr[i].text); /* "(Q) text " */ width 926 src/filemanager/chattr.c check_attr_width = MAX (check_attr_width, width); width 937 src/filemanager/chattr.c chattr_but[i].width = str_term_width1 (chattr_but[i].text) + 3; /* [], spaces and w/o & */ width 939 src/filemanager/chattr.c chattr_but[i].width += 2; /* <> */ width 1026 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->cols / 2 + 1 - chattr_but[i].width, width 495 src/filemanager/layout.c int l1 = 0, width; width 556 src/filemanager/layout.c width = max (l1 * 2 + 7, b); width 559 src/filemanager/layout.c dlg_create (TRUE, 0, 0, 15, width, WPOS_CENTER, FALSE, dialog_colors, layout_callback, NULL, width 624 src/filemanager/layout.c group_add_widget (g, button_new (12, (width - b) / 2, B_ENTER, DEFPUSH_BUTTON, ok_button, 0)); width 626 src/filemanager/layout.c button_new (12, (width - b) / 2 + b1 + 1, B_CANCEL, NORMAL_BUTTON, width 412 src/filemanager/panel.c add_permission_string (const char *dest, int width, file_entry_t * fe, int attr, int color, width 422 src/filemanager/panel.c l = width + l - 3; width 432 src/filemanager/panel.c for (i = 0; i < width; i++) width 791 src/filemanager/panel.c format_file (WPanel * panel, int file_index, int width, int attr, gboolean isstatus, width 810 src/filemanager/panel.c for (format = home; format != NULL && length != width; format = g_slist_next (format)) width 825 src/filemanager/panel.c if (len + length > width) width 826 src/filemanager/panel.c len = width - length; width 890 src/filemanager/panel.c if (length < width) width 895 src/filemanager/panel.c tty_draw_hline (y, x, ' ', width - length); width 909 src/filemanager/panel.c int width; width 917 src/filemanager/panel.c width = w->cols - 2; width 922 src/filemanager/panel.c width /= panel->list_cols; width 924 src/filemanager/panel.c offset = width * nth_column; width 927 src/filemanager/panel.c width = w->cols - offset - 2; width 931 src/filemanager/panel.c if (width <= 0) width 945 src/filemanager/panel.c ret_frm = format_file (panel, file_index, width, attr, isstatus, &fln); width 958 src/filemanager/panel.c width = fln; width 961 src/filemanager/panel.c offset = width - fln + 1; width 962 src/filemanager/panel.c width = fln - 1; width 972 src/filemanager/panel.c offset += width; width 3828 src/filemanager/panel.c int width, lines; width 3830 src/filemanager/panel.c width = (WIDGET (panel)->cols - 2) / panel->list_cols; width 3832 src/filemanager/panel.c y += lines * (x / width); width 578 src/viewer/ascii.c const screen_dimen width = view->data_area.width; width 658 src/viewer/ascii.c if (view->mode_flags.wrap && (off_t) col + charwidth > dpy_text_column + (off_t) width width 673 src/viewer/ascii.c (off_t) col + charwidth <= dpy_text_column + (off_t) width) width 703 src/viewer/ascii.c i < (off_t) col + charwidth && i < dpy_text_column + (off_t) width; i++) width 709 src/viewer/ascii.c else if ((off_t) col < dpy_text_column + (off_t) width && width 710 src/viewer/ascii.c (off_t) col + charwidth > dpy_text_column + (off_t) width) width 716 src/viewer/ascii.c for (i = col; i < dpy_text_column + (off_t) width; i++) width 727 src/viewer/ascii.c if (!view->mode_flags.wrap && (off_t) col >= dpy_text_column + (off_t) width width 1041 src/viewer/ascii.c view->dpy_text_column = mcview_offset_doz (linewidth, (off_t) view->data_area.width); width 136 src/viewer/display.c const screen_dimen right = view->status_area.left + view->status_area.width; width 152 src/viewer/display.c const screen_dimen width = view->status_area.width; width 160 src/viewer/display.c tty_draw_hline (WIDGET (view)->y + top, WIDGET (view)->x + left, ' ', width); width 167 src/viewer/display.c if (width > 40) width 169 src/viewer/display.c widget_gotoyx (view, top, width - 32); width 188 src/viewer/display.c if (width > 40) width 189 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, width - 34, J_LEFT_FIT)); width 191 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, width - 5, J_LEFT_FIT)); width 192 src/viewer/display.c if (width > 26) width 272 src/viewer/display.c view_area.width = mcview_dimen_doz (WIDGET (view)->cols, 2 * view->dpy_frame_size); width 317 src/viewer/display.c const screen_dimen cols = view->data_area.width; width 371 src/viewer/display.c const screen_dimen width = view->ruler_area.width; width 384 src/viewer/display.c for (c = 0; c < width; c++) width 102 src/viewer/hex.c const screen_dimen width = view->data_area.width; width 111 src/viewer/hex.c ((width < 80) ? 0 : (width == 80) ? (ngroups - 1) : (ngroups - 1 + 1)); width 165 src/viewer/hex.c for (i = 0; col < width && hex_buff[i] != '\0'; col++, i++) width 280 src/viewer/hex.c if (col < width) width 285 src/viewer/hex.c if (col < width) width 295 src/viewer/hex.c if (col < width) width 304 src/viewer/hex.c if (view->data_area.width >= 80 && col < width) width 309 src/viewer/hex.c if (col < width) width 350 src/viewer/hex.c if (text_start + bytes < width) width 64 src/viewer/internal.h screen_dimen height, width; width 402 src/viewer/lib.c const screen_dimen right = view->status_area.left + view->status_area.width; width 124 src/viewer/mcviewer.c if (x < view->data_area.width * 1 / 4) width 129 src/viewer/mcviewer.c else if (x < view->data_area.width * 3 / 4)