There is no native string comparison, but with rich STL you can write your own very simply something like this:
`
bool caseInsensitiveCmp(wstring str1, wstring str2) { if ( str1.size() != str2.size()) return false; else return (str1.empty() | str2.empty()) ? false : std::equal(str1.begin(), str1.end(),str2.begin(), [](wchar_t a, wchar_t b) { return tolower(a) == tolower(b); } ); }`
The first check is std protection: it is equal to comparison from any length.
source share