mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 02:27:42 +00:00
additional DataSpec imps
This commit is contained in:
@@ -107,6 +107,20 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct CaseInsensitiveCompare
|
||||
{
|
||||
inline bool operator()(const std::string& lhs, const std::string& rhs) const
|
||||
{
|
||||
std::string lhsl = lhs;
|
||||
std::transform(lhsl.begin(), lhsl.end(), lhsl.begin(), tolower);
|
||||
std::string rhsl = rhs;
|
||||
std::transform(rhsl.begin(), rhsl.end(), rhsl.begin(), tolower);
|
||||
if (lhsl.compare(rhsl) < 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/* Hash template-specializations for UniqueID types */
|
||||
|
||||
Reference in New Issue
Block a user