QCString substitute(const char *s,const char *src,const char *dst)
{
if (s==0 || src==0 || dst==0) return s;
if (s==0 || src==0) return s;
const char *p, *q;
int srcLen = strlen(src);
int dstLen = strlen(dst);
int dstLen = dst ? strlen(dst) : 0;
int resLen;
if (srcLen!=dstLen)
int l = (int)(q-p);
memcpy(r,p,l);
r+=l;
memcpy(r,dst,dstLen);
if (dst) memcpy(r,dst,dstLen);
r+=dstLen;
}
strcpy(r,p);