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).
20 lines
596 B
C++
20 lines
596 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 LowercaseWide(const std::string& text);
|
|
std::wstring DecodeText(UINT codePage, const std::string& text);
|
|
std::string EncodeText(UINT codePage, const std::wstring& text);
|
|
|
|
#endif
|