How to convert std::string to lower case?

后端 未结 26 1742
旧时难觅i
旧时难觅i 2020-11-22 00:01

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

26条回答
  •  忘掉有多难
    2020-11-22 00:47

    Use fplus::to_lower_case() from fplus library.

    Search to_lower_case in fplus API Search

    Example:

    fplus::to_lower_case(std::string("ABC")) == std::string("abc");
    

提交回复
热议问题