Lines Matching refs:chr_offset
522 dlg_edit_string(char *string, int *chr_offset, int key, int fkey, bool force) in dlg_edit_string() argument
528 int offset = dlg_find_index(indx, limit, *chr_offset); in dlg_edit_string()
554 if (*chr_offset && offset > 0) in dlg_edit_string()
555 *chr_offset = indx[offset - 1]; in dlg_edit_string()
559 *chr_offset = indx[offset + 1]; in dlg_edit_string()
562 if (*chr_offset) in dlg_edit_string()
563 *chr_offset = 0; in dlg_edit_string()
567 *chr_offset = indx[limit]; in dlg_edit_string()
572 *chr_offset = indx[offset - 1]; in dlg_edit_string()
574 for (i = *chr_offset; in dlg_edit_string()
585 string[*chr_offset = 0] = '\0'; in dlg_edit_string()
599 if (*chr_offset > indx[limit]) in dlg_edit_string()
600 *chr_offset = indx[limit]; in dlg_edit_string()
605 string[*chr_offset = 0] = '\0'; in dlg_edit_string()
633 for (i = ++len; i > *chr_offset; i--) in dlg_edit_string()
635 string[*chr_offset] = (char) key; in dlg_edit_string()
636 *chr_offset += 1; in dlg_edit_string()
647 int chr_offset, in compute_edit_offset() argument
655 int offset = dlg_find_index(indx, limit, chr_offset); in compute_edit_offset()
681 dlg_edit_offset(char *string, int chr_offset, int x_last) in dlg_edit_offset() argument
685 compute_edit_offset(string, chr_offset, x_last, &result, 0); in dlg_edit_offset()
697 int chr_offset, /* character (not bytes) offset */ in dlg_show_string() argument
721 compute_edit_offset(string, chr_offset, x_last, &input_x, &scrollamt); in dlg_show_string()