mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Make upcase clean. No functional change.
This commit is contained in:
+2
-2
@@ -79,13 +79,13 @@ string VString::dot(const string& a, const string& dot, const string& b) {
|
||||
return a + dot + b;
|
||||
}
|
||||
|
||||
string VString::downcase(const string& str) {
|
||||
string VString::downcase(const string& str) VL_PURE {
|
||||
string result = str;
|
||||
for (char& cr : result) cr = std::tolower(cr);
|
||||
return result;
|
||||
}
|
||||
|
||||
string VString::upcase(const string& str) {
|
||||
string VString::upcase(const string& str) VL_PURE {
|
||||
string result = str;
|
||||
for (char& cr : result) cr = std::toupper(cr);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user