rodecomp/Source/Network/TextEncoding.h
ragnarok-clanker 0a34d86404 Decompile 3 functions in Source/Network/TextEncoding.h, Source/Network/TextEncoding.cpp, ...
Batch #16442 by eAthena: 1 byte-identical, 2 confirmed by peer review.

- fn_16615 CUIRenewQuestUI::MatchesFilter: byte-identical
- fn_02795 FindSubstring: logic confirmed by peer review
- fn_16210 HighlightKeyword: logic confirmed by peer review

Peer-reviewed-by: Yommy, kyoshi
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-10 20:11:33 +00:00

22 lines
687 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 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);
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