Batch #4903 by youko: 0 byte-identical, 2 confirmed by peer review. - fn_10407 NavigationLinkParser::HasLink: logic confirmed by peer review - fn_10408 NavigationLinkParser::ExpandMessages: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag, Lumen Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
28 lines
897 B
C++
28 lines
897 B
C++
#ifndef RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
|
|
#define RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
|
|
|
|
#include <string>
|
|
|
|
struct NavigationLinkParser {
|
|
NavigationLinkParser();
|
|
~NavigationLinkParser();
|
|
|
|
bool HasLink(std::string text);
|
|
std::string ExpandMessages(std::string text);
|
|
|
|
/* 0000 */ bool m_ready;
|
|
};
|
|
|
|
extern NavigationLinkParser* g_navigationLinkParser;
|
|
|
|
bool CreateNavigationLinkParser();
|
|
void DestroyNavigationLinkParser();
|
|
std::string FormatMessageArguments(std::string value, int messageId);
|
|
int DecodeNavigationNumber(std::string value);
|
|
std::string EncodeNavigationNumber(int value);
|
|
bool ParseNavigationLink(std::string value, std::string& name, int& x, int& y);
|
|
std::string FormatNavigationLink(std::string value, bool brackets);
|
|
void DisplayNavigationLink(std::string& output, std::string value);
|
|
void ExtractNavigationLink(std::string& output, std::string value);
|
|
|
|
#endif
|