hostmatch.cc (339B)
1 #include "backenddef" 2 3 void BackendDef::hostmatch (string const &s) { 4 PROFILE("BackendDef::hostmatch"); 5 6 host_match = (s == "" ? "." : s); 7 if (regcomp (&host_regex, host_match.c_str(), 8 REG_EXTENDED | REG_ICASE | REG_NOSUB)) 9 throw Error("Host match specifier '" + 10 host_match + "' isn't a valid regular expression"); 11 }