i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes.
QString AddDoubleSlashtoPath(QString Path){
QStringList splitup=Path.split("//") ;/*supposed to be a single slash*/
QString newString;
int currentStr=0;
int stopP=splitup.size();
while(currentStr!=stopP){
newString.append(splitup.at(currentStr));
if(currentStr!=stopP-1)
newString.append("//");/*where I actually need doubleslashes */
currentStr++;
}
return newString;
}