Map converter now works 📦

This commit is contained in:
Antoine Pilote
2024-07-28 17:09:28 -04:00
parent d33c4f33df
commit 7c7cb0482b
6 changed files with 144 additions and 4 deletions

View File

@@ -88,4 +88,15 @@ namespace Nuake
return result;
}
std::string String::ToLower(const std::string& str)
{
std::string result = str; // Create a copy of the input string
// Transform each character to lowercase
std::transform(result.begin(), result.end(), result.begin(),
[](unsigned char c) { return std::tolower(c); });
return result;
}
}