I want to convert a std::string
to lowercase. I am aware of the function tolower()
, however in the past I have had issues with this function and it is hardly ideal anyway as use with a std::string
would require iterating over each character.
Is there an alternative which works 100% of the time?
转载于:https://stackoverflow.com/questions/313970/how-to-convert-stdstring-to-lower-case