MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / RemoveInvalidFilenameChars

Function RemoveInvalidFilenameChars

launcher/FileSystem.cpp:827–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825static const QString BAD_FILENAME_CHARS = BAD_WIN_CHARS + "\\/";
826
827QString RemoveInvalidFilenameChars(QString string, QChar replaceWith)
828{
829 for (int i = 0; i < string.length(); i++)
830 if (string.at(i) < ' ' || BAD_FILENAME_CHARS.contains(string.at(i)))
831 string[i] = replaceWith;
832 return string;
833}
834
835QString RemoveInvalidPathChars(QString path, QChar replaceWith)
836{

Callers 6

DirNameFromStringFunction · 0.85
createShortcutFunction · 0.85
doneMethod · 0.85
doExportMethod · 0.85
doneMethod · 0.85

Calls 2

atMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected