Lines Matching defs:limit
388 dlg_find_index(const int *list, int limit, int to_find)
391 for (result = 0; result <= limit; ++result) {
393 || result == limit
394 || ((result < limit) && (to_find < list[result + 1]))) {
484 int limit = dlg_count_wchars(string);
485 if (limit > 0) {
487 result = cols[limit];
496 * Given a column limit, count the number of wide characters that can fit
497 * into that limit. The offset is used to skip over a leading character
501 dlg_limit_columns(const char *string, int limit, int offset)
506 while (result > 0 && (cols[result] - cols[offset]) > limit)
520 int limit = dlg_count_wchars(string);
522 int offset = dlg_find_index(indx, limit, *chr_offset);
552 if (offset < limit)
560 if (offset < limit)
561 *chr_offset = indx[limit];
577 if (limit) {
578 if (--limit == 0) {
581 int gap = ((offset <= limit)
593 if (*chr_offset > indx[limit])
594 *chr_offset = indx[limit];
648 int limit = dlg_count_wchars(string);
649 int offset = dlg_find_index(indx, limit, chr_offset);
656 && (offset == limit || (cols[offset + 1] - cols[n]) < x_last)) {
709 int limit = dlg_count_wchars(string);
719 for (i = scrollamt, k = 0; i < limit && k < x_last; ++i) {