Include :
- aggiunta CompareNoCase - aggiornamento.
This commit is contained in:
+7
-2
@@ -13,9 +13,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include "/EgtDev/Include/EgnStringBase.h"
|
||||
#include "/EgtDev/Include/EgtNumCollection.h"
|
||||
#include <algorithm>
|
||||
|
||||
//----------------------- Macro per import/export -----------------------------
|
||||
#undef EGN_EXPORT
|
||||
@@ -60,7 +60,12 @@ inline std::string&
|
||||
ToLower( std::string& sString)
|
||||
{ std::transform( sString.begin(), sString.end(), sString.begin(), ::tolower) ;
|
||||
return sString ; }
|
||||
|
||||
inline bool
|
||||
CompareNoCase( const std::string& sL, const std::string& sR)
|
||||
{ return ( sL.size() == sR.size() &&
|
||||
std::equal( sL.cbegin(), sL.cend(), sR.cbegin(),
|
||||
[]( std::string::value_type cL, std::string::value_type cR)
|
||||
{ return tolower( cL) == tolower( cR); })) ; }
|
||||
//----------------------------------------------------------------------------
|
||||
inline bool
|
||||
IsEmptyOrSpaces( const std::string& sName)
|
||||
|
||||
Reference in New Issue
Block a user