Batch #988 by ragnarok-clanker: 0 byte-identical, 3 confirmed by peer review. - fn_07779 CTokenizer::operator[]: logic confirmed by peer review - fn_18248 CTokenizer::Parse: logic confirmed by peer review - fn_18261 CTokenizer::Parse: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Utility/Tokenizer.cpp
21 lines
431 B
C++
21 lines
431 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_TOKENIZER_H
|
|
#define RAGNAROK_SOURCE_UTILITY_TOKENIZER_H
|
|
|
|
#include <istream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class CTokenizer {
|
|
public:
|
|
std::string& operator[](int index);
|
|
void Parse(std::istream& input);
|
|
void Parse(const std::string& text);
|
|
|
|
/* 0000 */ std::vector<std::string> tokens;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CTokenizer) == 12);
|
|
#endif
|
|
|
|
#endif
|