Home | History | Annotate | Download | only in src

Lines Matching defs:RE

113 // Implements RE.  Currently only needed for death tests.
115 RE::~RE() {
127 // Returns true iff regular expression re matches the entire str.
128 bool RE::FullMatch(const char* str, const RE& re) {
129 if (!re.is_valid_) return false;
132 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
135 // Returns true iff regular expression re matches a substring of str
137 bool RE::PartialMatch(const char* str, const RE& re) {
138 if (!re.is_valid_) return false;
141 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
144 // Initializes an RE from its string representation.
145 void RE::Init(const char* regex) {
373 // Implements the RE class.
375 RE::~RE() {
380 // Returns true iff regular expression re matches the entire str.
381 bool RE::FullMatch(const char* str, const RE& re) {
382 return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_, str);
385 // Returns true iff regular expression re matches a substring of str
387 bool RE::PartialMatch(const char* str, const RE& re) {
388 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str);
391 // Initializes an RE from its string representation.
392 void RE::Init(const char* regex) {