Lines Matching refs:wp
21 static void tputS ARGS((char *wp, struct shf *shf));
294 tputS(wp, shf)
295 char *wp;
308 switch ((c = *wp++)) {
312 tputC(*wp++, shf);
315 c = *wp++;
323 while (*wp != 0)
324 tputC(*wp++, shf);
326 wp++;
332 while (*wp != 0)
333 tputC(*wp++, shf);
336 wp++;
348 if (*wp++ == '{')
350 while ((c = *wp++) != 0)
354 if (*wp++ == '}')
359 tputc(*wp++, shf);
529 wdcopy(wp, ap)
530 const char *wp;
533 size_t len = wdscan(wp, EOS) - wp;
534 return memcpy(alloc(len, ap), wp, len);
537 /* return the position of prefix c in wp plus 1 */
539 wdscan(wp, c)
540 const char *wp;
546 switch (*wp++) {
548 return (char *) __UNCONST(wp);
551 wp++;
555 while (*wp++ != 0)
563 while (*wp++ != '\0')
567 wp++;
569 return (char *) __UNCONST(wp);
575 wp++;
579 if (c == wp[-1] && nest == 0)
580 return (char *) __UNCONST(wp);
581 if (wp[-1] == CPAT)
588 wp[-1]);
592 /* return a copy of wp without any of the mark up characters and
597 wdstrip(wp)
598 const char *wp;
611 switch ((c = *wp++)) {
616 shf_putchar(*wp++, &shf);
621 while (*wp != 0)
622 shf_putchar(*wp++, &shf);
629 while (*wp != 0)
630 shf_putchar(*wp++, &shf);
640 if (*wp++ == '{')
642 while ((c = *wp++) != 0)
646 if (*wp++ == '}')
651 shf_putchar(*wp++, &shf);