Possible Duplicate:
Case insensitive std::string.find()
I want to make use of the std::string::find() method in a case insensitive way. I have come across various solutions suggesting the Boost library, but that solution is not applicable in my scenario.
Are there other ways to accomplish this?
If you can’t modify the string, make a copy of it. Convert all chars to lowercase in the string and then use
find()with a lowercase string.