MCPcopy Create free account
hub / github.com/audacity/audacity / IsGoodFileString

Method IsGoodFileString

libraries/lib-xml/XMLTagHandler.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool 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
62bool XMLValueChecker::IsGoodSubdirName(const FilePath & strSubdirName, const FilePath & strDirName /* = {} */)
63{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
lengthMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected