style: toquejant la pantalla de càrrega

This commit is contained in:
2025-10-20 14:07:14 +02:00
parent e99b2abd7d
commit 9fe73ed8e4
3 changed files with 31 additions and 6 deletions

View File

@@ -313,4 +313,16 @@ auto truncateWithEllipsis(const std::string& input, size_t length) -> std::strin
return result;
}
return input.substr(0, length) + "...";
}
}
// Añade espacios entre las letras de un string
auto spaceBetweenLetters(const std::string& input) -> std::string {
std::string result;
for (size_t i = 0; i < input.size(); ++i) {
result += input[i];
if (i != input.size() - 1) {
result += ' ';
}
}
return result;
}