Home | History | Annotate | Download | only in gmock

Lines Matching refs:regex

5674 // Implements polymorphic matchers MatchesRegex(regex) and
5675 // ContainsRegex(regex), which can be used as a Matcher<T> as long as
5679 MatchesRegexMatcher(const RE* regex, bool full_match)
5680 : regex_(regex), full_match_(full_match) {}
5682 // These overloaded methods allow MatchesRegex(regex) to be used as
5684 // true iff s matches regular expression regex. When full_match_ is
7412 // Matches a string that fully matches regular expression 'regex'.
7413 // The matcher takes ownership of 'regex'.
7415 const internal::RE* regex) {
7416 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true));
7419 const internal::string& regex) {
7420 return MatchesRegex(new internal::RE(regex));
7423 // Matches a string that contains regular expression 'regex'.
7424 // The matcher takes ownership of 'regex'.
7426 const internal::RE* regex) {
7427 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false));
7430 const internal::string& regex) {
7431 return ContainsRegex(new internal::RE(regex));