Case-insensitive string comparison in C++


#include 
// Or, for fewer header dependencies:
//#include 

std::string str1 = "hello, world!";
std::string str2 = "HELLO, WORLD!";

if (boost::iequals(str1, str2))
{
    // Strings are identical
}