Lines Matching refs:suffix
36 char* suffix;
326 * add s to the mapped suffix dictionary
330 suffix(Sfio_t* sp, const char* s, Jcldisc_t* disc)
442 (*disc->errorf)(NiL, disc, 2, "%s: prefix map [suffix] expected", op);
539 strcpy(mp->suffix = s + 1, arg[2]);
541 mp->suffix = s;
546 if ((s = (char*)nextdelim(mp->suffix)) && suffix(sp, s, disc))
574 else if (streq(op, "suf") || streq(op, "suffix"))
581 (*disc->errorf)(NiL, disc, 1, "%s: invalid suffix", s);
583 else if (suffix(sp, s, disc))
611 * return the length of the mapped suffix in path
612 * 0 returned if path has no mapped suffix
646 if (*m->suffix && *name && (n = suflen(name)))
649 sfprintf(jcl->vp, "%s%-.*s%s%s", m->map, n, name, m->suffix, name + n);
651 else if (*m->suffix && *m->map && (n = suflen(m->map)))
654 sfprintf(jcl->vp, "%-.*s%s%s%s", n, m->map, name, m->suffix, m->map + n);
657 sfprintf(jcl->vp, "%s%s%s", m->map, name, m->suffix);