Load into result all filesystem paths matching pattern.
Synopses
Declared in <bdls_filesystemutil.h>
Load into result all filesystem paths matching pattern.
static
int
findMatchingPaths(
bsl::vector<bsl::string>* result,
char const* pattern);
Load into result all filesystem paths matching pattern.
static
int
findMatchingPaths(
std::pmr::vector<std::pmr::string>* result,
char const* pattern);
Load into result all filesystem paths matching pattern.
static
int
findMatchingPaths(
std::vector<std::string>* result,
char const* pattern);
Load into result all filesystem paths matching pattern.
template<class STRING_TYPE>
static
int
findMatchingPaths(
bsl::vector<bsl::string>* result,
STRING_TYPE const& pattern);
Load into result all filesystem paths matching pattern.
template<class STRING_TYPE>
static
int
findMatchingPaths(
std::pmr::vector<std::pmr::string>* result,
STRING_TYPE const& pattern);
Load into result all filesystem paths matching pattern.
template<class STRING_TYPE>
static
int
findMatchingPaths(
std::vector<std::string>* result,
STRING_TYPE const& pattern);
Return Value
-
0 on success, and a non‐zero value otherwise
-
the number of paths matched on success, and a negative value otherwise
Parameters
Name |
Description |
result |
receives the matching path names |
pattern |
glob‐style pattern to match |
Created with MrDocs