width 130 lib/strutil.h /*I*/ const char *(*fit_to_term) (const char *text, int width, align_crt_t just_mode); width 131 lib/strutil.h /*I*/ const char *(*term_trim) (const char *text, const ssize_t width); width 132 lib/strutil.h /*I*/ const char *(*term_substring) (const char *text, int start, int width); width 134 lib/strutil.h /*I*/ size_t (*term_width2) (const char *text, const ssize_t width); width 136 lib/strutil.h /*I*/ const char *(*trunc) (const char *length, const ssize_t width); width 402 lib/strutil.h const char *str_fit_to_term (const char *text, int width, align_crt_t just_mode); width 409 lib/strutil.h const char *str_term_trim (const char *text, const ssize_t width); width 416 lib/strutil.h const char *str_term_substring (const char *text, int start, int width); width 427 lib/strutil.h int str_term_width2 (const char *text, const ssize_t width); width 449 lib/strutil.h const char *str_trunc (const char *text, const ssize_t width); width 452 lib/strutil/strutil.c str_fit_to_term (const char *text, int width, align_crt_t just_mode) width 454 lib/strutil/strutil.c return used_class.fit_to_term (text, width, just_mode); width 460 lib/strutil/strutil.c str_term_trim (const char *text, const ssize_t width) width 462 lib/strutil/strutil.c return used_class.term_trim (text, width); width 468 lib/strutil/strutil.c str_term_substring (const char *text, int start, int width) width 470 lib/strutil/strutil.c return used_class.term_substring (text, start, width); width 665 lib/strutil/strutil.c str_term_width2 (const char *text, const ssize_t width) width 669 lib/strutil/strutil.c return (int) used_class.term_width2 (text, width); width 795 lib/strutil/strutil.c str_trunc (const char *text, const ssize_t width) width 797 lib/strutil/strutil.c return used_class.trunc (text, width); width 945 lib/strutil/strutil.c int width; width 954 lib/strutil/strutil.c width = str_term_width1 (p); width 955 lib/strutil/strutil.c if (width > *columns) width 956 lib/strutil/strutil.c *columns = width; width 311 lib/strutil/strutil8bit.c str_8bit_fit_to_term (const char *text, int width, align_crt_t just_mode) width 324 lib/strutil/strutil8bit.c if ((int) length <= width) width 330 lib/strutil/strutil8bit.c ident = (width - length) / 2; width 333 lib/strutil/strutil8bit.c ident = width - length; width 348 lib/strutil/strutil8bit.c if (width - length - ident > 0) width 350 lib/strutil/strutil8bit.c if (remain <= width - length - ident) width 352 lib/strutil/strutil8bit.c memset (actual, ' ', width - length - ident); width 353 lib/strutil/strutil8bit.c actual += width - length - ident; width 358 lib/strutil/strutil8bit.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 367 lib/strutil/strutil8bit.c pos += length - width + 1; width 376 lib/strutil/strutil8bit.c ident = (length - width) / 2; width 379 lib/strutil/strutil8bit.c ident = length - width; width 386 lib/strutil/strutil8bit.c for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) width 400 lib/strutil/strutil8bit.c str_8bit_term_trim (const char *text, const ssize_t width) width 411 lib/strutil/strutil8bit.c if (width > 0) width 415 lib/strutil/strutil8bit.c if ((size_t) width >= length) width 420 lib/strutil/strutil8bit.c else if (width <= 3) width 422 lib/strutil/strutil8bit.c memset (actual, '.', (size_t) width); width 423 lib/strutil/strutil8bit.c actual += width; width 431 lib/strutil/strutil8bit.c for (pos = length - (size_t) width + 3; pos < length && remain > 1; width 444 lib/strutil/strutil8bit.c str_8bit_term_width2 (const char *text, const ssize_t width) width 448 lib/strutil/strutil8bit.c return (width < 0 ? text_len : MIN (text_len, (size_t) width)); width 471 lib/strutil/strutil8bit.c str_8bit_term_substring (const char *text, int start, int width) width 486 lib/strutil/strutil8bit.c for (pos = start; pos < length && width > 0 && remain > 1; width 487 lib/strutil/strutil8bit.c pos++, width--, actual++, remain--) width 491 lib/strutil/strutil8bit.c for (; width > 0 && remain > 1; actual++, remain--, width--) width 501 lib/strutil/strutil8bit.c str_8bit_trunc (const char *text, const ssize_t width) width 513 lib/strutil/strutil8bit.c if (width >= 0 && length > (size_t) width) width 515 lib/strutil/strutil8bit.c for (; pos + 1 <= (size_t) width / 2 && remain > 1; actual++, pos++, remain--) width 524 lib/strutil/strutil8bit.c pos += length - (size_t) width + 1; width 267 lib/strutil/strutilascii.c str_ascii_fit_to_term (const char *text, int width, align_crt_t just_mode) width 280 lib/strutil/strutilascii.c if ((int) length <= width) width 286 lib/strutil/strutilascii.c ident = (width - length) / 2; width 289 lib/strutil/strutilascii.c ident = width - length; width 310 lib/strutil/strutilascii.c if (width - length - ident > 0) width 312 lib/strutil/strutilascii.c if (remain <= width - length - ident) width 314 lib/strutil/strutilascii.c memset (actual, ' ', width - length - ident); width 315 lib/strutil/strutilascii.c actual += width - length - ident; width 321 lib/strutil/strutilascii.c for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) width 333 lib/strutil/strutilascii.c pos += length - width + 1; width 347 lib/strutil/strutilascii.c ident = (length - width) / 2; width 350 lib/strutil/strutilascii.c ident = length - width; width 359 lib/strutil/strutilascii.c for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) width 376 lib/strutil/strutilascii.c str_ascii_term_trim (const char *text, const ssize_t width) width 387 lib/strutil/strutilascii.c if (width > 0) width 391 lib/strutil/strutilascii.c if ((size_t) width >= length) width 400 lib/strutil/strutilascii.c else if (width <= 3) width 402 lib/strutil/strutilascii.c memset (actual, '.', (size_t) width); width 403 lib/strutil/strutilascii.c actual += width; width 412 lib/strutil/strutilascii.c for (pos = length - (size_t) width + 3; pos < length && remain > 1; width 428 lib/strutil/strutilascii.c str_ascii_term_width2 (const char *text, const ssize_t width) width 432 lib/strutil/strutilascii.c return (width < 0 ? text_len : MIN (text_len, (size_t) width)); width 455 lib/strutil/strutilascii.c str_ascii_term_substring (const char *text, int start, int width) width 471 lib/strutil/strutilascii.c for (pos = start; pos < length && width > 0 && remain > 1; width 472 lib/strutil/strutilascii.c pos++, width--, actual++, remain--) width 480 lib/strutil/strutilascii.c for (; width > 0 && remain > 1; actual++, remain--, width--) width 490 lib/strutil/strutilascii.c str_ascii_trunc (const char *text, const ssize_t width) width 502 lib/strutil/strutilascii.c if (width >= 0 && length > (size_t) width) width 505 lib/strutil/strutilascii.c for (; pos + 1 <= (size_t) width / 2 && remain > 1; actual++, pos++, remain--) width 517 lib/strutil/strutilascii.c pos += length - (size_t) width + 1; width 56 lib/strutil/strutilutf8.c size_t width; width 443 lib/strutil/strutilutf8.c str_utf8_make_make_term_form (const char *text, const ssize_t width) width 451 lib/strutil/strutilutf8.c width1 = width < 0 ? SIZE_MAX : (size_t) width; width 454 lib/strutil/strutilutf8.c result.width = 0; width 469 lib/strutil/strutilutf8.c result.width++; width 486 lib/strutil/strutilutf8.c result.width++; width 488 lib/strutil/strutilutf8.c result.width++; width 495 lib/strutil/strutilutf8.c result.width++; width 508 lib/strutil/strutilutf8.c result.width++; width 684 lib/strutil/strutilutf8.c str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode) width 697 lib/strutil/strutilutf8.c if (pre_form->width <= (gsize) width) width 703 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 706 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 715 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); width 720 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); width 724 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); width 726 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); width 733 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 736 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 745 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 746 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 758 lib/strutil/strutilutf8.c str_utf8_term_trim (const char *text, const ssize_t width) width 764 lib/strutil/strutilutf8.c if (width < 1) width 770 lib/strutil/strutilutf8.c const size_t width1 = (size_t) width; width 779 lib/strutil/strutilutf8.c if (width1 >= pre_form->width) width 794 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width1 + 3); width 807 lib/strutil/strutilutf8.c str_utf8_term_width2 (const char *text, const ssize_t width) width 809 lib/strutil/strutilutf8.c const struct term_form *result = str_utf8_make_make_term_form (text, width); width 811 lib/strutil/strutilutf8.c return result->width; width 836 lib/strutil/strutilutf8.c str_utf8_term_substring (const char *text, int start, int width) width 855 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 856 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 867 lib/strutil/strutilutf8.c str_utf8_trunc (const char *text, const ssize_t width) width 873 lib/strutil/strutilutf8.c const size_t width1 = width < 0 ? SIZE_MAX : (size_t) width; width 882 lib/strutil/strutilutf8.c if (pre_form->width <= width1) width 891 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width1 + 1); width 927 lib/strutil/strutilutf8.c int width = 0; width 940 lib/strutil/strutilutf8.c width++; width 942 lib/strutil/strutilutf8.c width++; width 947 lib/strutil/strutilutf8.c width++; width 954 lib/strutil/strutilutf8.c width++; width 957 lib/strutil/strutilutf8.c if ((gsize) width > pos) width 313 lib/util.c path_trunc (const char *path, const ssize_t width) width 322 lib/util.c if (width < 0) width 325 lib/util.c ret = str_trunc (p, (size_t) width); width 171 lib/util.h const char *path_trunc (const char *path, const ssize_t width); width 189 lib/widget/buttonbar.c int width; width 192 lib/widget/buttonbar.c width = buttonbar_get_button_width (bb, i); width 193 lib/widget/buttonbar.c if (width <= 0) width 201 lib/widget/buttonbar.c tty_print_string (str_fit_to_term (text, width - 2, J_LEFT_FIT)); width 618 lib/widget/dialog.c dlg_get_title (const WDialog *h, const ssize_t width) width 626 lib/widget/dialog.c t = h->get_title (h, width); width 53 lib/widget/dialog.h typedef char *(*dlg_title_str) (const WDialog *h, const ssize_t width); width 117 lib/widget/dialog.h char *dlg_get_title (const WDialog *h, const ssize_t width); width 100 lib/widget/groupbox.c groupbox_new (int y, int x, int height, int width, const char *title) width 102 lib/widget/groupbox.c WRect r = { y, x, height, width }; width 27 lib/widget/groupbox.h WGroupbox *groupbox_new (int y, int x, int height, int width, const char *title); width 160 lib/widget/history.c size_t width; width 162 lib/widget/history.c width = str_term_width1 (text); width 163 lib/widget/history.c hd->max_width = MAX (width, hd->max_width); width 147 lib/widget/hline.c hline_new (int y, int x, int width) width 149 lib/widget/hline.c WRect r = { y, x, 1, width }; width 155 lib/widget/hline.c r.cols = width < 0 ? 1 : width; width 158 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 952 lib/widget/input.c input_new (int y, int x, const int *colors, int width, const char *def_text, const char *histname, width 955 lib/widget/input.c WRect r = { y, x, 1, width }; width 974 lib/widget/input.c in->buffer = g_string_sized_new (width); width 555 lib/widget/listbox.c listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback) width 557 lib/widget/listbox.c WRect r = { y, x, 1, width }; width 63 lib/widget/listbox.h WListbox *listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback); width 88 lib/widget/quick.c int *width) width 110 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); width 121 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; width 133 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; width 145 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); width 202 lib/widget/quick.c int width = 0; width 210 lib/widget/quick.c width = item.widget->rect.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 226 lib/widget/quick.c width = item.widget->rect.cols; width 228 lib/widget/quick.c width += 2; width 230 lib/widget/quick.c width2 = MAX (width2, width); width 232 lib/widget/quick.c width1 = MAX (width1, width); width 240 lib/widget/quick.c quick_create_labeled_input (widgets, &y, x, quick_widget, &width); width 247 lib/widget/quick.c width = item.widget->rect.cols; width 250 lib/widget/quick.c width += 2; width 252 lib/widget/quick.c width2 = MAX (width2, width); width 254 lib/widget/quick.c width1 = MAX (width1, width); width 261 lib/widget/quick.c width = item.widget->rect.cols; width 263 lib/widget/quick.c width += 2; width 265 lib/widget/quick.c width2 = MAX (width2, width); width 267 lib/widget/quick.c width1 = MAX (width1, width); width 287 lib/widget/quick.c width = item.widget->rect.cols; width 289 lib/widget/quick.c width += 2; width 291 lib/widget/quick.c width2 = MAX (width2, width); width 293 lib/widget/quick.c width1 = MAX (width1, width); width 472 lib/widget/quick.c int width = column_width; width 475 lib/widget/quick.c width -= 4; width 484 lib/widget/quick.c r->cols = width - label->rect.cols - 1; width 492 lib/widget/quick.c r->cols = width - label->rect.cols - 1; width 501 lib/widget/quick.c r->cols = width; width 231 lib/widget/radio.c int width; width 234 lib/widget/radio.c width = hotkey_width (r->texts[i]); width 235 lib/widget/radio.c wmax = MAX (width, wmax); width 2481 src/diffviewer/ydiff.c dview_display_file (const WDiff *dview, diff_place_t ord, int r, int c, int height, int width) width 2504 src/diffviewer/ydiff.c if (xwidth > width && display_symbols) width 2509 src/diffviewer/ydiff.c if (xwidth > width && display_numbers != 0) width 2511 src/diffviewer/ydiff.c xwidth = width; width 2512 src/diffviewer/ydiff.c display_numbers = width; width 2517 src/diffviewer/ydiff.c width -= xwidth; width 2518 src/diffviewer/ydiff.c if (width < 0) width 2519 src/diffviewer/ydiff.c width = 0; width 2522 src/diffviewer/ydiff.c if ((int) sizeof (buf) <= width || (int) sizeof (buf) <= nwidth) width 2564 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2566 src/diffviewer/ydiff.c k = width; width 2573 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2617 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2619 src/diffviewer/ydiff.c k = width; width 2623 src/diffviewer/ydiff.c cvt_fget (f, p->u.off, buf, width, skip, tab_size, show_cr); width 2637 src/diffviewer/ydiff.c fill_by_space (buf, width, TRUE); width 2642 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2678 src/diffviewer/ydiff.c k = width; width 2679 src/diffviewer/ydiff.c if (width < xwidth - 1) width 2692 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, width, J_LEFT_FIT)); width 2701 src/diffviewer/ydiff.c dview_status (const WDiff *dview, diff_place_t ord, int width, int c) width 2714 src/diffviewer/ydiff.c filename_width = width - 24; width 3295 src/diffviewer/ydiff.c dview_get_title (const WDialog *h, const ssize_t width) width 3304 src/diffviewer/ydiff.c width1 = (width - str_term_width1 (_ ("Diff:")) - strlen (modified) - 3) / 2; width 3310 src/diffviewer/ydiff.c width1 = width / 2; width 3313 src/diffviewer/ydiff.c title = g_string_sized_new (width); width 1703 src/editor/edit.c off_t blocklen = -1, width = 0; width 1716 src/editor/edit.c width = pn == NULL ? blocklen : pn - (char *) data; width 1728 src/editor/edit.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 1755 src/editor/edit.c *col2 = col + width; width 672 src/editor/editcmd.c edit_insert_column_of_text (WEdit *edit, unsigned char *data, off_t size, long width, width 692 src/editor/editcmd.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 718 src/editor/editcmd.c *col2 = col + width; width 118 src/editor/editcomplete.c int width; width 201 src/editor/editcomplete.c width = str_term_width1 (temp->str); width 202 src/editor/editcomplete.c *max_width = MAX (*max_width, width); width 374 src/editor/editwidget.c edit_get_title (const WDialog *h, const ssize_t width) width 384 src/editor/editwidget.c const ssize_t width1 = width - strlen (modified); width 155 src/file_history.c size_t width; width 157 src/file_history.c width = str_term_width1 (fhd->file_name); width 158 src/file_history.c hd->max_width = MAX (width, hd->max_width); width 222 src/filemanager/chattr.c int width; width 361 src/filemanager/chattr.c int width; width 363 src/filemanager/chattr.c width = str_term_width1 (filename); width 364 src/filemanager/chattr.c r.cols = MAX (width, (int) check_attr_num); width 370 src/filemanager/chattr.c fat->filename_width = width; width 926 src/filemanager/chattr.c int width; width 934 src/filemanager/chattr.c width = 4 + str_term_width1 (check_attr[i].text); // "(Q) text " width 935 src/filemanager/chattr.c check_attr_width = MAX (check_attr_width, width); width 946 src/filemanager/chattr.c chattr_but[i].width = str_term_width1 (chattr_but[i].text) + 3; // [], spaces and w/o & width 948 src/filemanager/chattr.c chattr_but[i].width += 2; // <> width 1025 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.cols / 2 + 1 - chattr_but[i].width, width 844 src/filemanager/file.c int width_a, width_b, width; width 852 src/filemanager/file.c width = COLS - 8; width 854 src/filemanager/file.c if (width_a > width) width 856 src/filemanager/file.c if (width_b > width) width 860 src/filemanager/file.c s = g_strndup (str_trunc (a, width), width); width 861 src/filemanager/file.c b = str_trunc (b, width); width 867 src/filemanager/file.c a = str_trunc (a, width); width 873 src/filemanager/file.c if (width_b > width) width 874 src/filemanager/file.c b = str_trunc (b, width); width 420 src/filemanager/filemanager.c midnight_get_title (const WDialog *h, const ssize_t width) width 433 src/filemanager/filemanager.c path = g_strdup (str_trunc (p, width - 4)); width 491 src/filemanager/layout.c int l1 = 0, width; width 552 src/filemanager/layout.c width = max (l1 * 2 + 7, b); width 554 src/filemanager/layout.c layout_dlg = dlg_create (TRUE, 0, 0, 15, width, WPOS_CENTER, FALSE, dialog_colors, width 619 src/filemanager/layout.c group_add_widget (g, button_new (12, (width - b) / 2, B_ENTER, DEFPUSH_BUTTON, ok_button, 0)); width 621 src/filemanager/layout.c g, button_new (12, (width - b) / 2 + b1 + 1, B_CANCEL, NORMAL_BUTTON, cancel_button, 0)); width 307 src/filemanager/panel.c add_permission_string (const char *dest, int width, file_entry_t *fe, file_attr_t attr, int color, width 317 src/filemanager/panel.c l = width + l - 3; width 327 src/filemanager/panel.c for (i = 0; i < width; i++) width 686 src/filemanager/panel.c format_file (WPanel *panel, int file_index, int width, file_attr_t attr, gboolean isstatus, width 705 src/filemanager/panel.c for (format = home; format != NULL && length != width; format = g_slist_next (format)) width 720 src/filemanager/panel.c if (len + length > width) width 721 src/filemanager/panel.c len = width - length; width 783 src/filemanager/panel.c if (length < width) width 788 src/filemanager/panel.c tty_draw_hline (y, x, ' ', width - length); width 802 src/filemanager/panel.c int width; width 810 src/filemanager/panel.c width = w->rect.cols - 2; width 815 src/filemanager/panel.c width /= panel->list_cols; width 817 src/filemanager/panel.c offset = width * nth_column; width 820 src/filemanager/panel.c width = w->rect.cols - offset - 2; width 824 src/filemanager/panel.c if (width <= 0) width 835 src/filemanager/panel.c ret_frm = format_file (panel, file_index, width, attr, FALSE, &fln); width 848 src/filemanager/panel.c width = fln; width 851 src/filemanager/panel.c offset = width - fln + 1; width 852 src/filemanager/panel.c width = fln - 1; width 871 src/filemanager/panel.c offset += width; width 892 src/filemanager/panel.c int width; width 894 src/filemanager/panel.c width = WIDGET (panel)->rect.cols - 2; width 895 src/filemanager/panel.c if (width > 0) width 899 src/filemanager/panel.c (void) format_file (panel, panel->current, width, FATTR_STATUS, TRUE, &fln); width 296 src/viewer/internal.h char *mcview_get_title (const WDialog *h, ssize_t width); width 378 src/viewer/lib.c mcview_get_title (const WDialog *h, const ssize_t width) width 389 src/viewer/lib.c const ssize_t width1 = width - 4;