Lines Matching defs:ud
735 const struct utf8_data *ud)
740 *width += ud->width;
745 *width += ud->width;
749 ch = *ud->data;
750 if (ud->size == 1 && (ch <= 0x1f || ch == 0x7f)) {
756 utf8_copy(&gc->data, ud);
770 struct utf8_data ud;
773 utf8_set(&ud, '^');
775 width, gc, &ud));
878 status_prompt_in_list(const char *ws, const struct utf8_data *ud)
880 if (ud->size != 1 || ud->width != 1)
882 return (strchr(ws, *ud->data) != NULL);
887 status_prompt_space(const struct utf8_data *ud)
889 if (ud->size != 1 || ud->width != 1)
891 return (*ud->data == ' ');
1048 struct utf8_data *ud, *udp;
1053 ud = c->prompt_saved;
1059 ud = udp = xreallocarray(NULL, bufsize + 1, sizeof *ud);
1078 n = udp - ud;
1084 memcpy(c->prompt_buffer + c->prompt_index, ud,
1093 memcpy(c->prompt_buffer + c->prompt_index, ud,
1098 if (ud != c->prompt_saved)
1099 free(ud);
1109 struct utf8_data *first, *last, *ud;
1134 for (ud = first; ud < last; ud++) {
1135 if (used + ud->size >= sizeof word)
1137 memcpy(word + used, ud->data, ud->size);
1138 used += ud->size;
1140 if (ud != last)