mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
And more build errors fixed
3 errors left! Then the <bleep> will really hit the fan!
This commit is contained in:
parent
4baf9907c7
commit
e8d7dbb8bb
4 changed files with 21 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue