mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Skip calling islower before toupper
This commit is contained in:
parent
a26f380fff
commit
928b648f93
1 changed files with 1 additions and 2 deletions
|
@ -265,8 +265,7 @@ std::istream& String::Read(std::istream& is, int format) {
|
|||
|
||||
void String::ToUpper() {
|
||||
for ( int i = 0; i < n; ++i )
|
||||
if ( islower(b[i]) )
|
||||
b[i] = toupper(b[i]);
|
||||
b[i] = std::toupper(b[i]);
|
||||
}
|
||||
|
||||
String* String::GetSubstring(int start, int len) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue