width 131 lib/strutil.h /*I*/ const char *(*fit_to_term) (const char *text, int width, align_crt_t just_mode); width 132 lib/strutil.h /*I*/ const char *(*term_trim) (const char *text, int width); width 133 lib/strutil.h /*I*/ const char *(*term_substring) (const char *text, int start, int width); width 137 lib/strutil.h /*I*/ const char *(*trunc) (const char *length, 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 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, int 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 789 lib/strutil/strutil.c str_trunc (const char *text, int width) width 791 lib/strutil/strutil.c return used_class.trunc (text, width); width 939 lib/strutil/strutil.c int width; width 948 lib/strutil/strutil.c width = str_term_width1 (p); width 949 lib/strutil/strutil.c if (width > *columns) width 950 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 56 lib/strutil/strutilutf8.c size_t width; width 449 lib/strutil/strutilutf8.c result.width = 0; width 463 lib/strutil/strutilutf8.c result.width++; width 481 lib/strutil/strutilutf8.c result.width++; width 483 lib/strutil/strutilutf8.c result.width++; width 490 lib/strutil/strutilutf8.c result.width++; width 500 lib/strutil/strutilutf8.c result.width++; width 679 lib/strutil/strutilutf8.c str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode) width 691 lib/strutil/strutilutf8.c if (pre_form->width <= (gsize) width) width 697 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 700 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 709 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); width 714 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); width 718 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); width 720 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); width 727 lib/strutil/strutilutf8.c tool.ident = (width - pre_form->width) / 2; width 730 lib/strutil/strutilutf8.c tool.ident = width - pre_form->width; width 739 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 740 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 752 lib/strutil/strutilutf8.c str_utf8_term_trim (const char *text, int width) width 758 lib/strutil/strutilutf8.c if (width < 1) width 771 lib/strutil/strutilutf8.c if ((gsize) width >= pre_form->width) width 773 lib/strutil/strutilutf8.c else if (width <= 3) width 775 lib/strutil/strutilutf8.c memset (tool.actual, '.', width); width 776 lib/strutil/strutilutf8.c tool.actual += width; width 777 lib/strutil/strutilutf8.c tool.remain -= width; width 786 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 3); width 804 lib/strutil/strutilutf8.c return result->width; width 829 lib/strutil/strutilutf8.c str_utf8_term_substring (const char *text, int start, int width) width 848 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width); width 849 lib/strutil/strutilutf8.c utf8_tool_insert_space (&tool, width - tool.ident); width 860 lib/strutil/strutilutf8.c str_utf8_trunc (const char *text, int width) width 873 lib/strutil/strutilutf8.c if (pre_form->width <= (gsize) width) width 878 lib/strutil/strutilutf8.c utf8_tool_copy_chars_to (&tool, width / 2); width 882 lib/strutil/strutilutf8.c utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); width 918 lib/strutil/strutilutf8.c int width = 0; width 931 lib/strutil/strutilutf8.c width++; width 933 lib/strutil/strutilutf8.c width++; width 938 lib/strutil/strutilutf8.c width++; width 945 lib/strutil/strutilutf8.c width++; width 948 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 98 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 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 145 lib/widget/hline.c hline_new (int y, int x, int width) width 147 lib/widget/hline.c WRect r = { y, x, 1, width }; width 153 lib/widget/hline.c r.cols = width < 0 ? 1 : width; width 156 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 957 lib/widget/input.c input_new (int y, int x, const int *colors, int width, const char *def_text, width 960 lib/widget/input.c WRect r = { y, x, 1, width }; width 979 lib/widget/input.c in->buffer = g_string_sized_new (width); width 549 lib/widget/listbox.c listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback) width 551 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 86 lib/widget/quick.c int *width) width 108 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); width 119 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; width 132 lib/widget/quick.c *width = label.widget->rect.cols + in.widget->rect.cols + 1; width 144 lib/widget/quick.c *width = MAX (label.widget->rect.cols, in.widget->rect.cols); width 200 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 227 lib/widget/quick.c width = item.widget->rect.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->rect.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->rect.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->rect.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 473 lib/widget/quick.c int width = column_width; width 476 lib/widget/quick.c width -= 4; width 483 lib/widget/quick.c r->cols = width - label->rect.cols - 1; width 491 lib/widget/quick.c r->cols = width - label->rect.cols - 1; width 500 lib/widget/quick.c r->cols = width; width 229 lib/widget/radio.c int width; width 232 lib/widget/radio.c width = hotkey_width (r->texts[i]); width 233 lib/widget/radio.c wmax = MAX (width, wmax); width 2528 src/diffviewer/ydiff.c dview_display_file (const WDiff * dview, diff_place_t ord, int r, int c, int height, int width) width 2549 src/diffviewer/ydiff.c if (xwidth > width && display_symbols) width 2554 src/diffviewer/ydiff.c if (xwidth > width && display_numbers) width 2556 src/diffviewer/ydiff.c xwidth = width; width 2557 src/diffviewer/ydiff.c display_numbers = width; width 2562 src/diffviewer/ydiff.c width -= xwidth; width 2563 src/diffviewer/ydiff.c if (width < 0) width 2564 src/diffviewer/ydiff.c width = 0; width 2567 src/diffviewer/ydiff.c if ((int) sizeof (buf) <= width || (int) sizeof (buf) <= nwidth) width 2608 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2611 src/diffviewer/ydiff.c k = width; width 2618 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2667 src/diffviewer/ydiff.c k = dview_str_utf8_offset_to_pos (p->p, width); width 2670 src/diffviewer/ydiff.c k = width; width 2674 src/diffviewer/ydiff.c cvt_fget (f, p->u.off, buf, width, skip, tab_size, show_cr); width 2689 src/diffviewer/ydiff.c memset (buf, ' ', width); width 2690 src/diffviewer/ydiff.c buf[width] = '\0'; width 2695 src/diffviewer/ydiff.c for (cnt = 0; cnt < strlen (buf) && col < width; cnt++) width 2737 src/diffviewer/ydiff.c k = width; width 2738 src/diffviewer/ydiff.c if (width < xwidth - 1) width 2752 src/diffviewer/ydiff.c tty_print_string (str_fit_to_term (buf, width, J_LEFT_FIT)); width 2761 src/diffviewer/ydiff.c dview_status (const WDiff * dview, diff_place_t ord, int width, int c) width 2774 src/diffviewer/ydiff.c filename_width = width - 24; width 1702 src/editor/edit.c off_t blocklen = -1, width = 0; width 1715 src/editor/edit.c width = pn == NULL ? blocklen : pn - (char *) data; width 1727 src/editor/edit.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 1754 src/editor/edit.c *col2 = col + width; width 669 src/editor/editcmd.c edit_insert_column_of_text (WEdit * edit, unsigned char *data, off_t size, long width, width 689 src/editor/editcmd.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) width 715 src/editor/editcmd.c *col2 = col + width; width 118 src/editor/editcomplete.c int width; width 199 src/editor/editcomplete.c width = str_term_width1 (temp->str); width 200 src/editor/editcomplete.c *max_width = MAX (*max_width, 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 222 src/filemanager/chattr.c int width; width 365 src/filemanager/chattr.c int width; width 367 src/filemanager/chattr.c width = str_term_width1 (filename); width 368 src/filemanager/chattr.c r.cols = MAX (width, (int) check_attr_num); width 374 src/filemanager/chattr.c fat->filename_width = width; width 934 src/filemanager/chattr.c int width; width 942 src/filemanager/chattr.c width = 4 + str_term_width1 (check_attr[i].text); /* "(Q) text " */ width 943 src/filemanager/chattr.c check_attr_width = MAX (check_attr_width, width); width 954 src/filemanager/chattr.c chattr_but[i].width = str_term_width1 (chattr_but[i].text) + 3; /* [], spaces and w/o & */ width 956 src/filemanager/chattr.c chattr_but[i].width += 2; /* <> */ width 1034 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.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 417 src/filemanager/panel.c add_permission_string (const char *dest, int width, file_entry_t * fe, int attr, int color, width 427 src/filemanager/panel.c l = width + l - 3; width 437 src/filemanager/panel.c for (i = 0; i < width; i++) width 795 src/filemanager/panel.c format_file (WPanel * panel, int file_index, int width, int attr, gboolean isstatus, width 814 src/filemanager/panel.c for (format = home; format != NULL && length != width; format = g_slist_next (format)) width 829 src/filemanager/panel.c if (len + length > width) width 830 src/filemanager/panel.c len = width - length; width 894 src/filemanager/panel.c if (length < width) width 899 src/filemanager/panel.c tty_draw_hline (y, x, ' ', width - length); width 913 src/filemanager/panel.c int width; width 921 src/filemanager/panel.c width = w->rect.cols - 2; width 926 src/filemanager/panel.c width /= panel->list_cols; width 928 src/filemanager/panel.c offset = width * nth_column; width 931 src/filemanager/panel.c width = w->rect.cols - offset - 2; width 935 src/filemanager/panel.c if (width <= 0) width 949 src/filemanager/panel.c ret_frm = format_file (panel, file_index, width, attr, isstatus, &fln); width 962 src/filemanager/panel.c width = fln; width 965 src/filemanager/panel.c offset = width - fln + 1; width 966 src/filemanager/panel.c width = fln - 1; width 976 src/filemanager/panel.c offset += width; width 3902 src/filemanager/panel.c int width, lines; width 3904 src/filemanager/panel.c width = (CONST_WIDGET (panel)->rect.cols - 2) / panel->list_cols; width 3906 src/filemanager/panel.c y += lines * (x / width);