test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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
11  untaintString(char const* pattern, char const* regexp);
12 
13  bool
14  is_glob(std::string const& pattern);
15 
18 
19  std::vector<std::vector<std::string>::const_iterator>
20  regexMatch(std::vector<std::string> const& strings, std::regex const& regexp);
21 
22  std::vector<std::vector<std::string>::const_iterator>
23  regexMatch(std::vector<std::string> const& strings, std::string const& pattern);
24 }
25 
26 #endif // FWCore_Utilities_RegexMatch_h
bool is_glob(std::string const &pattern)
Definition: RegexMatch.cc:18
std::string glob2reg(std::string const &pattern)
Definition: RegexMatch.cc:22
bool untaintString(char const *pattern, char const *regexp)
Definition: RegexMatch.cc:13
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const &regexp)
Definition: RegexMatch.cc:30