Change startsWith(char) to take StringRef as argument

This commit is contained in:
Martin Hořeňovský committed 2021-09-27 14:55:28 +02:00
1 parent 7bb00a42be
commit d42e7a23a0
12 files changed
+80 -10

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@
namespace Catch {
bool startsWith( std::string const& s, std::string const& prefix );
bool startsWith( std::string const& s, char prefix );
bool startsWith( StringRef s, char prefix );
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 );