Lines Matching defs:regex
780 // Implements polymorphic matchers MatchesRegex(regex) and
781 // ContainsRegex(regex), which can be used as a Matcher<T> as long as
785 MatchesRegexMatcher(const RE* regex, bool full_match)
786 : regex_(regex), full_match_(full_match) {}
834 // Matches a string that fully matches regular expression 'regex'.
835 // The matcher takes ownership of 'regex'.
837 const internal::RE* regex) {
838 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true));
842 const internal::StringLike<T>& regex) {
843 return MatchesRegex(new internal::RE(std::string(regex)));
846 // Matches a string that contains regular expression 'regex'.
847 // The matcher takes ownership of 'regex'.
849 const internal::RE* regex) {
850 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false));
854 const internal::StringLike<T>& regex) {
855 return ContainsRegex(new internal::RE(std::string(regex)));