CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RegexMatch.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_RegexMatch_h
2 #define FWCore_Utilities_RegexMatch_h
3 
4 #include <regex>
5 #include <string>
6 #include <vector>
7 
8 namespace edm {
9 
10  bool untaintString(char const* pattern, char const* regexp);
11 
12  bool is_glob(std::string const& pattern);
13 
14  std::string glob2reg(std::string const& pattern);
15 
16  std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
17  std::regex const& regexp);
18 
19  std::vector<std::vector<std::string>::const_iterator> regexMatch(std::vector<std::string> const& strings,
20  std::string const& pattern);
21 } // namespace edm
22 
23 #endif // FWCore_Utilities_RegexMatch_h
bool is_glob(std::string const &pattern)
Definition: RegexMatch.cc:17
std::string glob2reg(std::string const &pattern)
Definition: RegexMatch.cc:19
bool untaintString(char const *pattern, char const *regexp)
Definition: RegexMatch.cc:12
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const &regexp)
Definition: RegexMatch.cc:26