| 825 | static const QString BAD_FILENAME_CHARS = BAD_WIN_CHARS + "\\/"; |
| 826 | |
| 827 | QString 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 | |
| 835 | QString RemoveInvalidPathChars(QString path, QChar replaceWith) |
| 836 | { |
no test coverage detected