Rose::FileSystem::baseNameMatches¶
Predicate returning true for matching names.
Synopsis¶
Declared in <src/Rose/FileSystem.h>
class [[visibility("default")]] baseNameMatches; Description¶
Returns true if and only if the final component of the path matches the specified regular expression.
For example, to find all files whose base name matches the glob "rose_*" use this (note that the corresponding regular expression is "rose_.*", with a dot):
using namespace Rose::FileSystem;
Path top = "/foo/bar"; // where the search starts
std::vector<Path> roseFiles = findAllNames(top,
baseNameMatches(std::regex("rose_.*")));
Member Functions¶
| Name | Description |
|---|---|
baseNameMatches [constructor] | Construct from regex |
operator() |
Private Data Members¶
| Name |
|---|
re_ |
Created with MrDocs