Searched defs:regex (Results 1 - 6 of 6) sorted by relevance

/bind-9.11.3/unit/atf-src/tools/
H A Dexpand.cpp47 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 Dtext.cpp31 #include <regex.h>
53 impl::match(const std::string& str, const std::string& regex) argument
58 if (regex.empty()) {
63 if (::regcomp(&preg, regex.c_str(), REG_EXTENDED) != 0)
64 throw std::runtime_error("Invalid regular expression '" + regex +
70 throw std::runtime_error("Invalid regular expression " + regex);
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dtext.cpp29 #include <regex.h>
54 impl::match(const std::string& str, const std::string& regex) argument
59 if (regex.empty()) {
64 if (::regcomp(&preg, regex.c_str(), REG_EXTENDED) != 0)
65 throw std::runtime_error("Invalid regular expression '" + regex +
71 throw std::runtime_error("Invalid regular expression " + regex);
/bind-9.11.3/unit/atf-src/atf-c++/
H A Dutils.cpp74 atf::utils::grep_file(const std::string& regex, const std::string& path) argument
76 return atf_utils_grep_file("%s", path.c_str(), regex.c_str());
80 atf::utils::grep_string(const std::string& regex, const std::string& str) argument
82 return atf_utils_grep_string("%s", str.c_str(), regex.c_str());
/bind-9.11.3/lib/dns/rdata/generic/
H A Dnaptr_35.c20 #include <isc/regex.h>
29 char regex[256]; local
55 cp = regex;
108 n = isc_regex_validate(regex);
119 unsigned char *regex; local
162 regex = isc_buffer_used(target);
166 RETTOK(txt_valid_regex(regex));
246 unsigned char *regex; local
279 regex = isc_buffer_used(target);
281 RETERR(txt_valid_regex(regex));
[all...]
/bind-9.11.3/unit/atf-src/atf-c/
H A Dutils.c34 #include <regex.h>
74 * \param regex The regexp to look for.
80 grep_string(const char *regex, const char *str) argument
85 printf("Looking for '%s' in '%s'\n", regex, str);
86 ATF_REQUIRE(regcomp(&preg, regex, REG_EXTENDED) == 0);
291 * \param regex The regexp to look for.
293 * \param ... Positional parameters to the regex.
297 atf_utils_grep_file(const char *regex, const char *file, ...) argument
305 error = atf_dynstr_init_ap(&formatted, regex, ap);
325 * \param regex Th
331 atf_utils_grep_string(const char *regex, const char *str, ...) argument
[all...]

Completed in 13 milliseconds