C++

Asked • 08/22/19

How to convert std::string to lower case?

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?

1 Expert Answer

By:

Storm C. answered • 02/18/20

Tutor
New to Wyzant

4.0 College Undergrad. Microsoft Intern. Google Hackathon Winner.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.