Lines Matching refs:wp
262 tputS(char *wp, struct shf *shf) in tputS() argument
274 switch ((c = *wp++)) { in tputS()
278 tputC(*wp++, shf); in tputS()
281 c = *wp++; in tputS()
289 while (*wp != 0) in tputS()
290 tputC(*wp++, shf); in tputS()
292 wp++; in tputS()
298 while (*wp != 0) in tputS()
299 tputC(*wp++, shf); in tputS()
302 wp++; in tputS()
314 if (*wp++ == '{') in tputS()
316 while ((c = *wp++) != 0) in tputS()
320 if (*wp++ == '}') in tputS()
324 tputc(*wp++, shf); in tputS()
484 wdcopy(const char *wp, Area *ap) in wdcopy() argument
486 size_t len = wdscan(wp, EOS) - wp; in wdcopy()
487 return memcpy(alloc(len, ap), wp, len); in wdcopy()
492 wdscan(const char *wp, int c) in wdscan() argument
497 switch (*wp++) { in wdscan()
499 return (char *) wp; in wdscan()
502 wp++; in wdscan()
506 while (*wp++ != 0) in wdscan()
514 while (*wp++ != '\0') in wdscan()
518 wp++; in wdscan()
520 return (char *) wp; in wdscan()
525 wp++; in wdscan()
529 if (c == wp[-1] && nest == 0) in wdscan()
530 return (char *) wp; in wdscan()
531 if (wp[-1] == CPAT) in wdscan()
537 __func__, wp[-1]); in wdscan()
546 wdstrip(const char *wp) in wdstrip() argument
559 switch ((c = *wp++)) { in wdstrip()
564 shf_putchar(*wp++, &shf); in wdstrip()
569 while (*wp != 0) in wdstrip()
570 shf_putchar(*wp++, &shf); in wdstrip()
577 while (*wp != 0) in wdstrip()
578 shf_putchar(*wp++, &shf); in wdstrip()
588 if (*wp++ == '{') in wdstrip()
590 while ((c = *wp++) != 0) in wdstrip()
594 if (*wp++ == '}') in wdstrip()
598 shf_putchar(*wp++, &shf); in wdstrip()