Lines Matching refs:limit

390 dlg_find_index(const int *list, int limit, int to_find)  in dlg_find_index()  argument
393 for (result = 0; result <= limit; ++result) { in dlg_find_index()
395 || result == limit in dlg_find_index()
396 || ((result < limit) && (to_find < list[result + 1]))) { in dlg_find_index()
490 int limit = dlg_count_wchars(string); in dlg_count_columns() local
491 if (limit > 0) { in dlg_count_columns()
493 result = cols[limit]; in dlg_count_columns()
507 dlg_limit_columns(const char *string, int limit, int offset) in dlg_limit_columns() argument
512 while (result > 0 && (cols[result] - cols[offset]) > limit) in dlg_limit_columns()
526 int limit = dlg_count_wchars(string); in dlg_edit_string() local
528 int offset = dlg_find_index(indx, limit, *chr_offset); in dlg_edit_string()
558 if (offset < limit) in dlg_edit_string()
566 if (offset < limit) in dlg_edit_string()
567 *chr_offset = indx[limit]; in dlg_edit_string()
583 if (limit) { in dlg_edit_string()
584 if (--limit == 0) { in dlg_edit_string()
587 int gap = ((offset <= limit) in dlg_edit_string()
599 if (*chr_offset > indx[limit]) in dlg_edit_string()
600 *chr_offset = indx[limit]; in dlg_edit_string()
654 int limit = dlg_count_wchars(string); in compute_edit_offset() local
655 int offset = dlg_find_index(indx, limit, chr_offset); in compute_edit_offset()
662 && (offset == limit || (cols[offset + 1] - cols[n]) < x_last)) { in compute_edit_offset()
715 int limit = dlg_count_wchars(string); in dlg_show_string() local
725 for (i = scrollamt, k = 0; i < limit && k < x_last; ++i) { in dlg_show_string()