mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
C++11: Favor auto, range for. No functional change intended.
This commit is contained in:
+2
-2
@@ -74,13 +74,13 @@ string VString::dot(const string& a, const string& dot, const string& b) {
|
||||
|
||||
string VString::downcase(const string& str) {
|
||||
string out = str;
|
||||
for (string::iterator pos = out.begin(); pos != out.end(); ++pos) *pos = tolower(*pos);
|
||||
for (auto& cr : out) cr = tolower(cr);
|
||||
return out;
|
||||
}
|
||||
|
||||
string VString::upcase(const string& str) {
|
||||
string out = str;
|
||||
for (string::iterator pos = out.begin(); pos != out.end(); ++pos) *pos = toupper(*pos);
|
||||
for (auto& cr : out) cr = toupper(cr);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user