提交 aa5934ee authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Utils.h: code cleanup

上级 aceec5f2
...@@ -261,11 +261,14 @@ namespace Utils ...@@ -261,11 +261,14 @@ namespace Utils
class String class String
{ {
public: public:
static void ToLowerCase(std::string& str) static void ToLowerCase(std::string& str);
};
inline
void String::ToLowerCase(std::string& str)
{ {
std::transform(str.begin(), str.end(), str.begin(), ::tolower); std::transform(str.begin(), str.end(), str.begin(), ::tolower);
} }
};
} }
#endif #endif
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论