Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2017-02-13 08:19:34 +0000
committerPhil Nash2017-02-13 08:20:45 +0000
commit67d513aa73cabff710e50680ec8ef25804b9fe09 (patch)
tree041b2ad57f4fd6940b473e75b72109daa9d41e48 /include
parent9a3486a7056e2dab1d8b3ae50343eedda97c0462 (diff)
downloadcatch3-67d513aa73cabff710e50680ec8ef25804b9fe09.tar.gz
Removed single char contains()
- had incorrect prototype anyway
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_common.h1
-rw-r--r--include/internal/catch_common.hpp3
2 files changed, 0 insertions, 4 deletions
diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h
index 6bdcccb8..32b57ac1 100644
--- a/include/internal/catch_common.h
+++ b/include/internal/catch_common.h
@@ -82,7 +82,6 @@ namespace Catch {
bool endsWith( std::string const& s, std::string const& suffix );
bool endsWith( std::string const& s, char suffix );
bool contains( std::string const& s, std::string const& infix );
- bool contains( std::string const& s, std::string const& infix );
void toLowerInPlace( std::string& s );
std::string toLower( std::string const& s );
std::string trim( std::string const& str );
diff --git a/include/internal/catch_common.hpp b/include/internal/catch_common.hpp
index 339f0407..9f943777 100644
--- a/include/internal/catch_common.hpp
+++ b/include/internal/catch_common.hpp
@@ -30,9 +30,6 @@ namespace Catch {
bool contains( std::string const& s, std::string const& infix ) {
return s.find( infix ) != std::string::npos;
}
- bool contains( std::string const& s, char infix ) {
- return s.find(infix) != std::string::npos;
- }
char toLowerCh(char c) {
return static_cast<char>( std::tolower( c ) );
}