I am trying to use boost string algorithms for case insensitive search.
total newbie here.
if I am using it this way, I get an error.
std::string str1("Hello world");
std::string str2("hello");
if ( boost::ifind_first(str1, str2) ) some code;
Converting to char pointers resolves the problem.
boost::ifind_first( (char*)str1.c_str(), (char*)str2.c_str() );
Is there a way to search std::string objects directly?
Also, maybe there is another way to know if string is present inside another string with case-insensitive search?