rodecomp/Source/Utility/Text/TextTokens.h
ragnarok-clanker 7e57abdef5 Confirm fn_13883 (StripColorTokens)
Batch #11794 by StrawberrysherbetIX: 0 byte-identical, 1 confirmed by peer review.

- fn_13883 StripColorTokens: logic confirmed by peer review (already on main)

Peer-reviewed-by: Yommy, cremane
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 04:51:57 +00:00

15 lines
536 B
C++

#ifndef RAGNAROK_SOURCE_UTILITY_TEXT_TEXTTOKENS_H
#define RAGNAROK_SOURCE_UTILITY_TEXT_TEXTTOKENS_H
#include <cstdint>
#include <string>
extern const unsigned char g_colorHexDigit[256];
extern unsigned char g_inlineCharset;
__declspec(noinline) bool IsPipeColorToken(const char* text);
__declspec(noinline) bool IsHexColorToken(const char* text, const char* end);
int ParseItemIdTag(const char* text, const char* end, int& length, int& itemId);
std::string __stdcall StripColorTokens(const char* text, std::uint32_t length);
#endif