String To Lower/Upper in C++

前端 未结 10 1941
挽巷
挽巷 2020-12-08 20:10

What is the best way people have found to do String to Lower case / Upper case in C++?

The issue is complicated by the fact that C++ isn\'t an English only programmi

10条回答
  •  無奈伤痛
    2020-12-08 20:42

    What Steve says is right, but I guess that if your code had to support several languages, you could have a factory method that encapsulates a set of methods that do the relevant toUpper or toLower based on that language.

提交回复
热议问题