Revert "use std::tolower"

This reverts commit a3db4128bc.

This broke the build.
This commit is contained in:
ridiculousfish
2019-09-22 15:33:08 -07:00
parent a3db4128bc
commit 91c4dad812
5 changed files with 16 additions and 6 deletions

View File

@@ -4,6 +4,8 @@
#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) {
@@ -62,3 +64,9 @@ 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;
}