Lines Matching defs:wp

50 	wchar_t	*wstr, *wp;
76 wp = wstr;
78 if (*wp == L'!') {
79 wp++;
84 while (iswspace(*wp))
85 ++wp; /* eat leading white space */
92 lastword = wp;
96 if (*wp == L'\n') {
100 wp++;
103 wlen = wcwidth(*wp);
109 mlen = wctomb(mbs, *wp);
115 wp++;
119 wp++;
121 * if wlen is a negative value (*wp is not printable),
132 if (iswspace(*wp)) {
134 while ((*++wp == L'\t') || (*wp == '\n'));
136 lastword = wp;
140 } else if (*wp == L'\\') {
141 if (*(wp + 1) == L'n') {
144 wp += 2;
145 lastword = wp;
147 } else if (*(wp + 1) == L't') {
153 wp += 2;
154 lastword = wp;
156 } else if (*(wp + 1) == L' ') {
158 wp += 2;
161 if (iswprint(*wp) && iswprint(*(wp + 1))) {
163 * Only if both *wp and *(wp +1) are printable,
166 wlen = wcwidth(*wp);
169 * if (n + wlen) is larger than width, *wp will be
172 *copy++ = *wp++;
177 bdg = wdbindf(*wp,
178 *(wp + 1), 1);
179 *copy++ = *wp++;
182 * binding weight between *wp and *(wp + 1) is
185 lastword = wp;
191 wlen = wcwidth(*wp);
194 * *wp is printable
198 * if (n + wlen) is larger than width, *wp will
201 *copy++ = *wp++;
209 * *wp is not printable, and shares 1 column.
213 *copy++ = *wp++;
217 if (iswprint(*wp) && iswprint(*(wp + 1))) {
219 * Only if both *wp and *(wp + 1) are printable,
222 wlen = wcwidth(*wp);
225 * if (n + wlen) is larger than width, *wp will be
228 *copy++ = *wp++;
233 bdg = wdbindf(*wp, *(wp + 1), 1);
234 *copy++ = *wp++;
237 * binding weight between *wp and *(wp + 1) is
240 lastword = wp;
245 wlen = wcwidth(*wp);
248 * *wp is printable
252 * if (n + wlen) is larger than width, *wp will
255 *copy++ = *wp++;
263 * *wp is not printable, and shares 1 column.
267 *copy++ = *wp++;
287 wp = lastword;
292 while (iswspace(*wp))
293 wp++;
296 } while (*wp != L'\0');