Home | History | Annotate | Download | only in gmock

Lines Matching full:regex

1108 // Implements polymorphic matchers MatchesRegex(regex) and
1109 // ContainsRegex(regex), which can be used as a Matcher<T> as long as
1113 MatchesRegexMatcher(const RE* regex, bool full_match)
1114 : regex_(regex), full_match_(full_match) {}
1116 // These overloaded methods allow MatchesRegex(regex) to be used as
1118 // true iff s matches regular expression regex. When full_match_ is
2921 // Matches a string that fully matches regular expression 'regex'.
2922 // The matcher takes ownership of 'regex'.
2924 const internal::RE* regex) {
2925 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true));
2928 const internal::string& regex) {
2929 return MatchesRegex(new internal::RE(regex));
2932 // Matches a string that contains regular expression 'regex'.
2933 // The matcher takes ownership of 'regex'.
2935 const internal::RE* regex) {
2936 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false));
2939 const internal::string& regex) {
2940 return ContainsRegex(new internal::RE(regex));