Created
October 18, 2014 02:22
-
-
Save lookat23/9f3c387f2129e67319ea to your computer and use it in GitHub Desktop.
std::string 改变大小写
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void toLowerCase( std::string& str ) | |
{ | |
std::transform( | |
str.begin(), | |
str.end(), | |
str.begin(), | |
tolower); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment