Function CheckRegexPathMatch#

Function Documentation#

inline bool CheckRegexPathMatch(const std::filesystem::path &rpathRel, const std::string &rssPattern)#

Checks if a path matches a given regex pattern.

The matching is performed against the entire path.

Remark

For the regex patterns, it is assumed that navigation directories like “.” and “..” are to be matched as literal text. Therefore, in the regex pattern, dots should be escaped (e.g., \. and \.\.).

Parameters:
  • rpathRel[in] Reference to the existing relative filesystem path to check.

  • rssPattern[in] Reference to the pattern expressed as a regular expression.

Returns:

Returns if the path matches the pattern.