tolower function for C++ strings

前端 未结 6 988
误落风尘
误落风尘 2020-12-11 01:19

Is there an inbuilt function to convert C++ string from upper case letters to lowercase letters ? If not converting it to cstring and using tolower on each char is the only

6条回答
  •  失恋的感觉
    2020-12-11 02:10

    There is no built-in function to do this, and doing it is surprisingly complicated, because of locales et al. If tolower does what you need, it may be your best bet.

提交回复
热议问题