mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-04-21 18:55:42 +00:00
Update string.cpp
This commit is contained in:
parent
fedea76698
commit
a4dc158e56
@ -32,16 +32,16 @@ std::vector<std::string> split(const std::string& s, const char delim) {
|
||||
}
|
||||
|
||||
std::string to_lower(std::string text) {
|
||||
std::transform(text.begin(), text.end(), text.begin(), [](const char input) {
|
||||
return static_cast<char>(tolower(input));
|
||||
std::transform(text.begin(), text.end(), text.begin(), [](unsigned char input) {
|
||||
return static_cast<char>(std::tolower(input));
|
||||
});
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
std::string to_upper(std::string text) {
|
||||
std::transform(text.begin(), text.end(), text.begin(), [](const char input) {
|
||||
return static_cast<char>(toupper(input));
|
||||
std::transform(text.begin(), text.end(), text.begin(), [](unsigned char input) {
|
||||
return static_cast<char>(std::toupper(input));
|
||||
});
|
||||
|
||||
return text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user