Lines Matching refs:wp

49 	wchar_t	*wstr, *wp;  in puttext()  local
75 wp = wstr; in puttext()
77 if (*wp == L'!') { in puttext()
78 wp++; in puttext()
83 while (iswspace(*wp)) in puttext()
84 ++wp; /* eat leading white space */ in puttext()
91 lastword = wp; in puttext()
95 if (*wp == L'\n') { in puttext()
99 wp++; in puttext()
102 wlen = wcwidth(*wp); in puttext()
108 mlen = wctomb(mbs, *wp); in puttext()
114 wp++; in puttext()
118 wp++; in puttext()
131 if (iswspace(*wp)) { in puttext()
133 while ((*++wp == L'\t') || (*wp == '\n')); in puttext()
135 lastword = wp; in puttext()
139 } else if (*wp == L'\\') { in puttext()
140 if (*(wp + 1) == L'n') { in puttext()
143 wp += 2; in puttext()
144 lastword = wp; in puttext()
146 } else if (*(wp + 1) == L't') { in puttext()
152 wp += 2; in puttext()
153 lastword = wp; in puttext()
155 } else if (*(wp + 1) == L' ') { in puttext()
157 wp += 2; in puttext()
160 if (iswprint(*wp) && iswprint(*(wp + 1))) { in puttext()
165 wlen = wcwidth(*wp); in puttext()
171 *copy++ = *wp++; in puttext()
176 bdg = wdbindf(*wp, in puttext()
177 *(wp + 1), 1); in puttext()
178 *copy++ = *wp++; in puttext()
184 lastword = wp; in puttext()
190 wlen = wcwidth(*wp); in puttext()
200 *copy++ = *wp++; in puttext()
212 *copy++ = *wp++; in puttext()
216 if (iswprint(*wp) && iswprint(*(wp + 1))) { in puttext()
221 wlen = wcwidth(*wp); in puttext()
227 *copy++ = *wp++; in puttext()
232 bdg = wdbindf(*wp, *(wp + 1), 1); in puttext()
233 *copy++ = *wp++; in puttext()
239 lastword = wp; in puttext()
244 wlen = wcwidth(*wp); in puttext()
254 *copy++ = *wp++; in puttext()
266 *copy++ = *wp++; in puttext()
286 wp = lastword; in puttext()
291 while (iswspace(*wp)) in puttext()
292 wp++; in puttext()
295 } while (*wp != L'\0'); in puttext()