Decompile fn_03954 (CCURLMgr::FromUtf8)
Batch #16496 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_03954 CCURLMgr::FromUtf8: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
8f9e9eb24f
commit
1bd6fae74a
16 changed files with 107 additions and 62 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include "Network/Http/CURLMgr.h"
|
||||
#include "Network/TextEncoding.h"
|
||||
#include "Utility/StackAlloc.h"
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ UINT g_textCodePage;
|
|||
|
||||
// OFFSET: 0x005E8FE0
|
||||
// FUNCTION: fn_03951
|
||||
std::string ToUtf8(std::string text) {
|
||||
std::string CCURLMgr::ToUtf8(std::string text) {
|
||||
std::string result;
|
||||
int wideLength = MultiByteToWideChar(g_textCodePage, 0, text.c_str(), lstrlenA(text.c_str()), nullptr, 0);
|
||||
BSTR wide = SysAllocStringLen(nullptr, wideLength);
|
||||
|
|
@ -43,7 +44,7 @@ std::string ToUtf8(std::string text) {
|
|||
|
||||
// OFFSET: 0x005E9440
|
||||
// FUNCTION: fn_03954
|
||||
std::string FromUtf8(std::string text) {
|
||||
std::string CCURLMgr::FromUtf8(std::string text) {
|
||||
std::string result;
|
||||
int wideLength = MultiByteToWideChar(CP_UTF8, 0, text.c_str(), lstrlenA(text.c_str()) + 1, nullptr, 0);
|
||||
BSTR wide = SysAllocStringLen(nullptr, wideLength);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue