Batch #5122 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_17632 LexiconBoundary::Load: logic confirmed by peer review Peer-reviewed-by: youko, Romain Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
18 lines
440 B
C++
18 lines
440 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_LEXICON_LEXICONBOUNDARY_H
|
|
#define RAGNAROK_SOURCE_UTILITY_LEXICON_LEXICONBOUNDARY_H
|
|
|
|
#include <cstdint>
|
|
|
|
struct LexiconSerializer;
|
|
|
|
struct LexiconBoundary {
|
|
/* 0000 */ LexiconSerializer* serializer;
|
|
/* 0004 */ std::uint32_t flags[256];
|
|
|
|
bool Load();
|
|
bool Matches(unsigned char previous, unsigned char current, unsigned char options) const;
|
|
};
|
|
|
|
extern std::uint32_t g_lexiconByteClasses[256];
|
|
|
|
#endif
|