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