Skip to content

Instantly share code, notes, and snippets.

@jmjuanes
Created November 6, 2015 23:55
Show Gist options
  • Save jmjuanes/8c3b005cd9c23754aa01 to your computer and use it in GitHub Desktop.
Save jmjuanes/8c3b005cd9c23754aa01 to your computer and use it in GitHub Desktop.
Convert string to Lowercase (resp, Uppercase) in C++
#include <algorithm>
#include <string>
std::string data = "Abc";
std::transform(data.begin(), data.end(), data.begin(), ::tolower);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment