Glob.h file
File name pattern globbing.
Namespaces
- namespace slang
- Root namespace.
Enums
- enum class GlobRank { ExactPath, SimpleName, WildcardName, Directory }
- Classifies the ranking of a glob pattern.
- enum class GlobMode { Files, Directories }
- The type of search to perform with a file system glob operation.
Functions
-
GlobRank svGlob(const std::
filesystem:: path& basePath, std:: string_view pattern, GlobMode mode, SmallVector<std:: filesystem:: path>& results, bool expandEnvVars, std:: error_code& ec) - Performs a file system "glob" operation to find paths matching the given pattern.
-
bool svGlobMatches(const std::
filesystem:: path& path, const std:: filesystem:: path& pattern) - Checks whether the given path matches the supplied pattern.