Lines Matching defs:regex
1323 // Implements polymorphic matchers MatchesRegex(regex) and
1324 // ContainsRegex(regex), which can be used as a Matcher<T> as long as
1328 MatchesRegexMatcher(const RE* regex, bool full_match)
1329 : regex_(regex), full_match_(full_match) {}
4003 // Matches a string that fully matches regular expression 'regex'.
4004 // The matcher takes ownership of 'regex'.
4006 const internal::RE* regex) {
4007 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true));
4010 const internal::string& regex) {
4011 return MatchesRegex(new internal::RE(regex));
4014 // Matches a string that contains regular expression 'regex'.
4015 // The matcher takes ownership of 'regex'.
4017 const internal::RE* regex) {
4018 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false));
4021 const internal::string& regex) {
4022 return ContainsRegex(new internal::RE(regex));