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.
19 lines
608 B
C++
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
|