rodecomp/Source/Network/TextEncoding.h
ragnarok-clanker 1bd6fae74a 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.
2026-11-10 20:22:33 +00:00

19 lines
608 B
C++

#ifndef RAGNAROK_SOURCE_NETWORK_TEXTENCODING_H
#define RAGNAROK_SOURCE_NETWORK_TEXTENCODING_H
#include <string>
#include <string_view>
#include <windows.h>
extern UINT g_textCodePage;
std::string FromUtf8(const std::string& text, UINT codePage);
std::string ToUtf8(const std::string& text, UINT codePage);
void LowercaseText(std::string& text);
std::wstring LowercaseWide(const std::string& text);
int FindSubstring(std::string_view text, std::string_view pattern);
std::wstring DecodeText(UINT codePage, const std::string& text);
std::string EncodeText(UINT codePage, const std::wstring& text);
#endif