rodecomp/Source/Network/TextEncoding.h
ragnarok-clanker 427f369e30 Decompile 8 functions in Source/UI/Quest/UIRenewQuestUI.cpp, Source/UI/Quest/UIRenewQuestUI.h, ...
Batch #4151 by superintelligence: 7 byte-identical, 1 confirmed by peer review.

- fn_16605 CUIRenewQuestUI::OnCallback6: byte-identical
- fn_16606 CUIRenewQuestUI::OnCallback50: byte-identical
- fn_16607 CUIRenewQuestUI::OnCallback43: byte-identical
- fn_16608 CUIRenewQuestUI::OnCallback80: byte-identical
- fn_16609 CUIRenewQuestUI::OnCallback74: byte-identical
- fn_16611 CUIRenewQuestUI::OnCallback56: byte-identical
- fn_16614 CUIListBoxEx<RenewQuestUI::CUIQuestItem,unsigned long>::ClearData: byte-identical (annotation added to existing code)
- fn_16615 CUIRenewQuestUI::MatchesFilter: logic confirmed by peer review

Peer-reviewed-by: youko, zindokar
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 01:33:15 +00:00

21 lines
668 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);
int FindSubstring(const char* text, int codePage, const char* pattern);
std::wstring DecodeText(UINT codePage, const std::string& text);
std::string EncodeText(UINT codePage, const std::wstring& text);
#endif