Skip calling islower before toupper

This commit is contained in:
Tim Wojtulewicz 2025-04-14 20:32:18 -07:00
parent a26f380fff
commit 928b648f93

View file

@ -265,8 +265,7 @@ std::istream& String::Read(std::istream& is, int format) {
void String::ToUpper() { void String::ToUpper() {
for ( int i = 0; i < n; ++i ) for ( int i = 0; i < n; ++i )
if ( islower(b[i]) ) b[i] = std::toupper(b[i]);
b[i] = toupper(b[i]);
} }
String* String::GetSubstring(int start, int len) const { String* String::GetSubstring(int start, int len) const {