use std::tolower

This commit is contained in:
Aaron Gyes
2019-09-22 15:46:39 -07:00
parent a19d9b2e73
commit a3db4128bc
5 changed files with 6 additions and 16 deletions

View File

@@ -4,8 +4,6 @@
#include "common.h"
#include "wcstringutil.h"
#include <wctype.h>
typedef wcstring::size_type size_type;
wcstring_range wcstring_tok(wcstring &str, const wcstring &needle, wcstring_range last) {
@@ -64,9 +62,3 @@ wcstring trim(wcstring input, const wchar_t *any_of) {
result.erase(0, prefix);
return result;
}
wcstring wcstolower(wcstring input) {
wcstring result = std::move(input);
std::transform(result.begin(), result.end(), result.begin(), towlower);
return result;
}