Searched defs:regex (Results 1 - 4 of 4) sorted by relevance
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/ |
H A D | expand.cpp | 47 std::string regex; local 48 regex.reserve(glob.length() * 2); 50 regex += '^'; 54 case '*': regex += ".*"; break; 55 case '?': regex += "."; break; 56 default: regex += *iter; 59 regex += '$'; 61 return regex;
|
H A D | text.cpp | 31 #include <regex.h> 58 impl::match(const std::string& str, const std::string& regex) argument 63 if (regex.empty()) { 68 if (::regcomp(&preg, regex.c_str(), REG_EXTENDED) != 0) 69 throw std::runtime_error("Invalid regular expression '" + regex + 75 throw std::runtime_error("Invalid regular expression " + regex);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 78 atf::utils::grep_file(const std::string& regex, const std::string& path) argument 80 return atf_utils_grep_file("%s", path.c_str(), regex.c_str()); 84 atf::utils::grep_string(const std::string& regex, const std::string& str) argument 86 return atf_utils_grep_string("%s", str.c_str(), regex.c_str());
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | utils.c | 38 #include <regex.h> 50 * \param regex The regexp to look for. 56 grep_string(const char *regex, const char *str) argument 61 printf("Looking for '%s' in '%s'\n", regex, str); 62 ATF_REQUIRE(regcomp(&preg, regex, REG_EXTENDED) == 0); 258 * \param regex The regexp to look for. 260 * \param ... Positional parameters to the regex. 264 atf_utils_grep_file(const char *regex, const char *file, ...) argument 272 error = atf_dynstr_init_ap(&formatted, regex, ap); 292 * \param regex Th 298 atf_utils_grep_string(const char *regex, const char *str, ...) argument [all...] |
Completed in 11 milliseconds