We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c6d0d commit ad8ddd7Copy full SHA for ad8ddd7
src/utils/string.cc
@@ -154,28 +154,22 @@ std::string toHexIfNeeded(const std::string &str, bool escape_spec) {
154
155
156
std::string tolower(std::string str) {
157
- std::string value;
158
- value.resize(str.length());
159
-
160
std::transform(str.begin(),
161
str.end(),
162
- value.begin(),
+ str.begin(),
163
::tolower);
164
165
- return value;
+ return str;
166
}
167
168
169
std::string toupper(std::string str) {
170
171
172
173
174
175
176
::toupper);
177
178
179
180
181
0 commit comments