Lines Matching refs:offset
348 * which byte-offset begins a given wide-character.
384 * Given the character-offset to find in the list, return the corresponding
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)
512 * Updates the string and character-offset, given various editing characters
513 * or literal characters which are inserted at the character-offset.
522 int offset = dlg_find_index(indx, limit, *chr_offset);
548 if (*chr_offset && offset > 0)
549 *chr_offset = indx[offset - 1];
552 if (offset < limit)
553 *chr_offset = indx[offset + 1];
560 if (offset < limit)
564 if (offset) {
565 int gap = indx[offset] - indx[offset - 1];
566 *chr_offset = indx[offset - 1];
581 int gap = ((offset <= limit)
582 ? (indx[offset + 1] - indx[offset])
585 for (i = indx[offset];
590 } else if (offset > 0) {
591 string[indx[offset - 1]] = '\0';
649 int offset = dlg_find_index(indx, limit, chr_offset);
654 for (n = offset2 = 0; n <= offset; ++n) {
655 if ((cols[offset] - cols[n]) < x_last
656 && (offset == limit || (cols[offset + 1] - cols[n]) < x_last)) {
662 dpy_column = cols[offset] - cols[offset2];
671 * Given the character-offset in the string, returns the display-offset where
686 * the current character-offset.
691 int chr_offset, /* character (not bytes) offset */