converting a basic_string to lowercase
this may not be the best way, but it''s a way:
basic_string myStr;
int i;
for (i = 0; i < myStr.size (); i++)
{
myStr = tolower(myStr);<br><br>}<br> </i>
basic_string myStr;
int i;
for (i = 0; i < myStr.size (); i++)
{
myStr = tolower(myStr);<br><br>}<br> </i>
std::transform( str.begin(), str.end(), str.begin(), std::tolower);
[Questions (STFW) | GDNet Start Here | GDNet Search | Forum FAQ | Google | Asking Smart Questions ]
[Docs (RTFM) | MSDN | SGI's STL | OpenGL | File formats]
[C++ Must Haves (RTFS) | MinGW | Boost | Loki | FLTK | SDL ]
Stolen from Magmai Kai Holmlor, who held it from Oluseyi, who was inspired by Kylotan...
[edited by - Fruny on May 1, 2002 12:24:06 AM]
[Questions (STFW) | GDNet Start Here | GDNet Search | Forum FAQ | Google | Asking Smart Questions ]
[Docs (RTFM) | MSDN | SGI's STL | OpenGL | File formats]
[C++ Must Haves (RTFS) | MinGW | Boost | Loki | FLTK | SDL ]
Stolen from Magmai Kai Holmlor, who held it from Oluseyi, who was inspired by Kylotan...
[edited by - Fruny on May 1, 2002 12:24:06 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement