Home | History | Annotate | Download | only in src

Lines Matching refs:wp

294 wdvarput(struct shf *shf, const char *wp, int quotelevel, int opmode)
310 switch (*wp++) {
312 return (--wp);
315 c = *wp++;
325 c = *wp++;
343 while ((c = *wp++) != 0)
370 if (*wp++ == '{')
372 while ((c = *wp++) != 0)
374 wp = wdvarput(shf, wp, 0, opmode);
377 if (*wp++ == '}')
379 return (wp);
383 shf_putchar(*wp++ | 0x80, shf);
385 shf_putchar(*wp++, shf);
563 wdcopy(const char *wp, Area *ap)
567 len = wdscan(wp, EOS) - wp;
568 return (memcpy(alloc(len, ap), wp, len));
571 /* return the position of prefix c in wp plus 1 */
573 wdscan(const char *wp, int c)
578 switch (*wp++) {
580 return (wp);
583 return (wp + 1);
587 wp++;
592 while (*wp++ != 0)
600 while (*wp++ != '\0')
604 wp++;
606 return (wp);
611 wp++;
615 if (c == wp[-1] && nest == 0)
616 return (wp);
617 if (wp[-1] == CPAT)
623 wp[-1]);
628 * return a copy of wp without any of the mark up characters and with
632 wdstrip(const char *wp, int opmode)
637 wdvarput(&shf, wp, 0, opmode);
798 dumpwdvar_i(struct shf *shf, const char *wp, int quotelevel)
803 switch(*wp++) {
806 return (--wp);
812 dumpchar(shf, *wp++);
816 c = *wp++;
825 while ((c = *wp++) != 0)
848 dumpchar(shf, *wp++);
850 while ((c = *wp++) != 0)
853 wp = dumpwdvar_i(shf, wp, 0);
857 dumpchar(shf, *wp++);
859 return (wp);
862 dumpchar(shf, *wp++);
871 shf_fprintf(shf, "INVAL<%u>", (uint8_t)wp[-1]);
878 dumpwdvar(struct shf *shf, const char *wp)
880 dumpwdvar_i(shf, wp, 0);