Decompile fn_02832 (LowercaseWide)
Batch #2890 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_02832 LowercaseWide: logic confirmed by peer review Peer-reviewed-by: willerthal, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
a4422f1173
commit
4843546129
2 changed files with 12 additions and 0 deletions
|
|
@ -1,10 +1,13 @@
|
|||
#include "Network/TextEncoding.h"
|
||||
#include "Utility/StackAlloc.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <atlconv.h>
|
||||
#include <cctype>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cwctype>
|
||||
#include <malloc.h>
|
||||
#include <oleauto.h>
|
||||
|
||||
|
|
@ -189,3 +192,11 @@ std::string EncodeText(UINT codePage, const std::wstring& text) {
|
|||
std::free(converted);
|
||||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00590EB0
|
||||
// FUNCTION: fn_02832
|
||||
std::wstring LowercaseWide(const std::string& text) {
|
||||
std::wstring result(ATL::CA2WEX<128>(text.c_str(), CP_THREAD_ACP));
|
||||
std::transform(result.begin(), result.end(), result.begin(), towlower);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue