5 /* substitute into one string using the matches from the last regexec() */
7 rregsub(Rune *sp, /* source string */
8 Rune *dp, /* destination string */
10 Resub *mp, /* subexpression elements */
11 int ms) /* number of elements pointed to by mp */
16 ep = dp+(dlen/sizeof(Rune))-1;
31 if(mp[i].rsp != 0 && mp!=0 && ms>i)
51 if(mp[0].rsp != 0 && mp!=0 && ms>0)
54 ssp < mp[0].rep; ssp++)