Home | History | Annotate | Download | only in src

Lines Matching defs:RE

109 // Implements RE.  Currently only needed for death tests.
111 RE::~RE() {
117 // Returns true iff regular expression re matches the entire str.
118 bool RE::FullMatch(const char* str, const RE& re) {
119 if (!re.is_valid_) return false;
122 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
125 // Returns true iff regular expression re matches a substring of str
127 bool RE::PartialMatch(const char* str, const RE& re) {
128 if (!re.is_valid_) return false;
131 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
134 // Initializes an RE from its string representation.
135 void RE::Init(const char* regex) {
362 // Implements the RE class.
364 RE::~RE() {
369 // Returns true iff regular expression re matches the entire str.
370 bool RE::FullMatch(const char* str, const RE& re) {
371 return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_, str);
374 // Returns true iff regular expression re matches a substring of str
376 bool RE::PartialMatch(const char* str, const RE& re) {
377 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str);
380 // Initializes an RE from its string representation.
381 void RE::Init(const char* regex) {