mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-09 18:45:32 +02:00
Added <cctype> and std::tolower
This commit is contained in:
parent
8472c109a7
commit
8c80abe2db
@ -8,6 +8,8 @@
|
||||
#ifndef TWOBLUECUBES_CATCH_COMMON_HPP_INCLUDED
|
||||
#define TWOBLUECUBES_CATCH_COMMON_HPP_INCLUDED
|
||||
|
||||
#include <cctype>
|
||||
|
||||
#include "catch_common.h"
|
||||
|
||||
namespace Catch {
|
||||
@ -22,7 +24,7 @@ namespace Catch {
|
||||
return s.find( infix ) != std::string::npos;
|
||||
}
|
||||
void toLowerInPlace( std::string& s ) {
|
||||
std::transform( s.begin(), s.end(), s.begin(), ::tolower );
|
||||
std::transform( s.begin(), s.end(), s.begin(), std::tolower );
|
||||
}
|
||||
std::string toLower( std::string const& s ) {
|
||||
std::string lc = s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user