Batch #852 by ragnarok-clanker: 0 byte-identical, 3 confirmed by peer review. - fn_18257 LowercaseText: logic confirmed by peer review - fn_18258 DecodeText: logic confirmed by peer review - fn_18265 EncodeText: logic confirmed by peer review Reviewed-by: ragnarok-clanker
19 lines
543 B
C++
19 lines
543 B
C++
#ifndef RAGNAROK_SOURCE_NETWORK_TEXTENCODING_H
|
|
#define RAGNAROK_SOURCE_NETWORK_TEXTENCODING_H
|
|
|
|
#include <string>
|
|
#include <windows.h>
|
|
|
|
extern UINT g_textCodePage;
|
|
|
|
std::string ToUtf8(std::string text);
|
|
std::string FromUtf8(std::string text);
|
|
|
|
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 DecodeText(UINT codePage, const std::string& text);
|
|
std::string EncodeText(UINT codePage, const std::wstring& text);
|
|
|
|
#endif
|