mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2026-10-02 17:45:34 +00:00
Update string.cpp
This commit is contained in:
1 parent
416036d25e
commit
41d4b5781d
1 file changed
+2
-2
@@ -31,7 +31,7 @@ std::vector<std::string> split(const std::string& s, const char delim) {
|
||||
return elems;
|
||||
}
|
||||
|
||||
std::string to_lower(const std::string text) {
|
||||
std::string to_lower(const std::string& text) {
|
||||
std::string result;
|
||||
std::ranges::transform(text, std::back_inserter(result),
|
||||
[](const unsigned char input) {
|
||||
@@ -41,7 +41,7 @@ std::string to_lower(const std::string text) {
|
||||
return text;
|
||||
}
|
||||
|
||||
std::string to_upper(const std::string text) {
|
||||
std::string to_upper(const std::string& text) {
|
||||
std::string result;
|
||||
std::ranges::transform(text, std::back_inserter(result),
|
||||
[](const unsigned char input) {
|
||||
|
||||
Reference in new issue
Block a user