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::string to_lower(std::string text) {
|
||||||
std::transform(text.begin(), text.end(), text.begin(), [](const char input) {
|
std::transform(text.begin(), text.end(), text.begin(), [](unsigned char input) {
|
||||||
return static_cast<char>(tolower(input));
|
return static_cast<char>(std::tolower(input));
|
||||||
});
|
});
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string to_upper(std::string text) {
|
std::string to_upper(std::string text) {
|
||||||
std::transform(text.begin(), text.end(), text.begin(), [](const char input) {
|
std::transform(text.begin(), text.end(), text.begin(), [](unsigned char input) {
|
||||||
return static_cast<char>(toupper(input));
|
return static_cast<char>(std::toupper(input));
|
||||||
});
|
});
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user