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).
15 lines
536 B
C++
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
|