Lines Matching defs:re
576 // Returns true iff regular expression re matches the entire str.
577 bool RE::FullMatch(const char* str, const RE& re) {
578 if (!re.is_valid_) return false;
581 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
584 // Returns true iff regular expression re matches a substring of str
586 bool RE::PartialMatch(const char* str, const RE& re) {
587 if (!re.is_valid_) return false;
590 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
829 // Returns true iff regular expression re matches the entire str.
830 bool RE::FullMatch(const char* str, const RE& re) {
831 return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_, str);
834 // Returns true iff regular expression re matches a substring of str
836 bool RE::PartialMatch(const char* str, const RE& re) {
837 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str);