Matches a string that contains regular expression 'regex'. The matcher takes ownership of 'regex'.
| 9583 | // Matches a string that contains regular expression 'regex'. |
| 9584 | // The matcher takes ownership of 'regex'. |
| 9585 | inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex( |
| 9586 | const internal::RE* regex) { |
| 9587 | return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false)); |
| 9588 | } |
| 9589 | inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex( |
| 9590 | const std::string& regex) { |
| 9591 | return ContainsRegex(new internal::RE(regex)); |
no test coverage detected