rwcstring で出現するすべての「\\」を「-」に置き換える必要があります。
これを達成するために「RWCRExpr」を使用しようとしましたが、何も機能しません。
以下で試した組み合わせを参照して、これを達成するのを手伝ってください。
RWCString strchkk("");
RWCString strappendpath="D:\Newfolder\\new";
strchkk=strappendpath.replace(RWCRExpr("\\"), "-");
strchkk = strappendpath.replace(RWCRExpr("\\*"), "-*", RWCString::all);
strchkk = strappendpath.replace(RWCRExpr("\\?"), "-?", RWCString::all);
RWCString strappendpath1 = "D:\Newfolder\\new";
strchkk = strappendpath1.replace(RWCRExpr("\\*"), "-", RWCString::all);
strchkk = strappendpath1.replace(RWCRExpr("\\?"), "-", RWCString::all);
RWCString strappendpath2 = "D:\Newfolder\\new";
strchkk = strappendpath2.replace(RWCRExpr("\*"), "-", RWCString::all);
strchkk = strappendpath2.replace(RWCRExpr("\?"), "-", RWCString::all);
RWCString strappendpath3 = "D:\Newfolder\\new";
strchkk = strappendpath3.replace("\\", "-", RWCString::all);
strchkk = strappendpath3.replace("\\?", "-", RWCString::all);
strchkk = strappendpath3.replace("\\*", "-", RWCString::all);
RWCRExpr re("[A-Z][a-z]*\\");
strchkk = strappendpath.replace(re, "-");