Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::tolower is a function defined in the header file cctype.h to convert a char to lower case.
StrToLower can be implemented using a for loop, but prefer algorithm calls over hand-written loops [1][2]. View Exercise #9: No for-loops for other ways of replacing for-loops by algorithms.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.