| 49 | } |
| 50 | |
| 51 | bool XMLValueChecker::IsGoodFileString(const FilePath &str) |
| 52 | { |
| 53 | return (!str.empty() && |
| 54 | |
| 55 | // FILENAME_MAX is 260 in MSVC, but inconsistent across platforms, |
| 56 | // sometimes huge, but we use 260 for all platforms. |
| 57 | (str.length() <= 260) && |
| 58 | |
| 59 | (str.Find(wxFileName::GetPathSeparator()) == -1)); // No path separator characters. |
| 60 | } |
| 61 | |
| 62 | bool XMLValueChecker::IsGoodSubdirName(const FilePath & strSubdirName, const FilePath & strDirName /* = {} */) |
| 63 | { |