Util/CharUtil: add wchar_t overloads

Needed for WStringView.
This commit is contained in:
Max Kellermann
2017-09-12 18:22:02 +02:00
parent 01f84b0e53
commit 9744f437d8
4 changed files with 145 additions and 2 deletions

View File

@@ -199,7 +199,8 @@ CurlRequest::HeaderFunction(StringView s)
return;
std::string name(header, value);
std::transform(name.begin(), name.end(), name.begin(), ToLowerASCII);
std::transform(name.begin(), name.end(), name.begin(),
static_cast<char(*)(char)>(ToLowerASCII));
/* skip the colon */