And more build errors fixed

3 errors left!

Then the <bleep> will really hit the fan!
This commit is contained in:
Charles A Edwards 2016-02-03 13:30:36 +00:00 committed by Antz
parent 4baf9907c7
commit e8d7dbb8bb
4 changed files with 21 additions and 11 deletions

View file

@ -422,6 +422,17 @@ bool Utf8toWStr(const std::string& utf8str, std::wstring& wstr)
return true;
}
bool Utf8ToUpperOnlyLatin(std::string &utf8String)
{
std::wstring wstr;
if (!Utf8toWStr(utf8String, wstr))
return false;
std::transform(wstr.begin(), wstr.end(), wstr.begin(), wcharToUpperOnlyLatin);
return WStrToUtf8(wstr, utf8String);
}
bool WStrToUtf8(wchar_t* wstr, size_t size, std::string& utf8str)
{
try