Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
28 lines
902 B
C++
28 lines
902 B
C++
#ifndef RAGNAROK_SOURCE_UI_TEXT_TEXTMARKUP_H
|
|
#define RAGNAROK_SOURCE_UI_TEXT_TEXTMARKUP_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct TextLink {
|
|
std::uint32_t position;
|
|
std::byte unknown_0004[8];
|
|
std::string display;
|
|
std::string metadata;
|
|
};
|
|
|
|
bool HasTextLinks(const std::string& text);
|
|
std::string ExpandTextEscapes(std::string text);
|
|
std::string RemoveTextColors(const char* text, unsigned short codePage);
|
|
std::string DisplayTextTag(std::string text, const std::string& begin, const std::string& end);
|
|
std::string RemoveTextLinkInfo(std::string text);
|
|
void ExtractTextLinks(std::string text, const std::string& begin, const std::string& end, std::vector<TextLink>& links);
|
|
void SplitTextLinkArguments(std::string text, std::vector<std::string>& arguments);
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(TextLink) == 60);
|
|
#endif
|
|
|
|
#endif
|