如何将std:string转换为小写?
我想转换一个std::string降到小写。我知道这个功能tolower(),但是,在过去,我对这个函数有过一些问题,而且它并不是一个理想的函数。std::string需要对每个字符进行迭代。
std::string
tolower()
是否有一种100%有效的替代方案?
相关分类