fix remove std::transform
This commit is contained in:
parent
4402688c9c
commit
5900bdf0f6
@ -19,19 +19,17 @@ ToUpper(char c)
|
|||||||
std::string
|
std::string
|
||||||
ToLower(const std::string &str)
|
ToLower(const std::string &str)
|
||||||
{
|
{
|
||||||
std::string result;
|
std::stringstream ss;
|
||||||
std::transform(str.begin(), str.end(), std::back_inserter(result),
|
for (auto &ch : str) { ss << ToLower(ch); }
|
||||||
::tolower);
|
return ss.str();
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
ToUpper(const std::string &str)
|
ToUpper(const std::string &str)
|
||||||
{
|
{
|
||||||
std::string result;
|
std::stringstream ss;
|
||||||
std::transform(str.begin(), str.end(), std::back_inserter(result),
|
for (auto &ch : str) { ss << ToUpper(ch); }
|
||||||
::toupper);
|
return ss.str();
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
|
Loading…
Reference in New Issue
Block a user