Ya se puede modificar el JailerID desde la pantalla de titulo, aunque hay que pulirlo un poco

This commit is contained in:
2023-10-03 23:18:56 +02:00
parent ee261f4509
commit a4fd00794d
7 changed files with 114 additions and 47 deletions

View File

@@ -553,4 +553,20 @@ bool colorAreEqual(color_t color1, color_t color2)
const bool b = color1.b == color2.b;
return (r && g && b);
}
// Convierte una cadena a minusculas
std::string toLower(std::string str)
{
const char *original = str.c_str();
char *lower = (char *)malloc(str.size() + 1);
for (int i = 0; i < (int)str.size(); ++i)
{
char c = original[i];
lower[i] = (c >= 65 && c <= 90) ? c + 32 : c;
}
lower[str.size()] = 0;
std::string nova(lower);
free(lower);
return nova;
}