| 
    Cppcheck
    
   | 
 
Simple path matching for ignoring paths in CLI. More...
#include <pathmatch.h>
Public Member Functions | |
| PathMatch (std::vector< std::string > excludedPaths, bool caseSensitive=true) | |
| The constructor.  More... | |
| bool | match (const std::string &path) const | 
| Match path against list of masks.  More... | |
Static Protected Member Functions | |
| static std::string | removeFilename (const std::string &path) | 
| Remove filename part from the path.  More... | |
Private Attributes | |
| std::vector< std::string > | mExcludedPaths | 
| bool | mCaseSensitive | 
| std::vector< std::string > | mWorkingDirectory | 
Simple path matching for ignoring paths in CLI.
Definition at line 33 of file pathmatch.h.
      
  | 
  explicit | 
The constructor.
| excludedPaths | List of masks. | 
| caseSensitive | Match the case of the characters when matching paths? | 
Definition at line 27 of file pathmatch.cpp.
References Path::getCurrentPath(), mCaseSensitive, mExcludedPaths, mWorkingDirectory, and strTolower().
| bool PathMatch::match | ( | const std::string & | path | ) | const | 
Match path against list of masks.
| path | Path to match. | 
Definition at line 36 of file pathmatch.cpp.
References endsWith(), Path::fromNativeSeparators(), Path::getRelativePath(), Path::isAbsolute(), mCaseSensitive, mExcludedPaths, mWorkingDirectory, removeFilename(), and strTolower().
Referenced by addFiles2(), and FileList::applyExcludeList().
      
  | 
  staticprotected | 
Remove filename part from the path.
| path | Path to edit. | 
Definition at line 81 of file pathmatch.cpp.
Referenced by match().
      
  | 
  private | 
Definition at line 62 of file pathmatch.h.
Referenced by match(), and PathMatch().
      
  | 
  private | 
Definition at line 61 of file pathmatch.h.
Referenced by match(), and PathMatch().
      
  | 
  private | 
Definition at line 63 of file pathmatch.h.
Referenced by match(), and PathMatch().