2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-09 10:11:49 +00:00

Identify token joining operators

This commit is contained in:
Jan
2023-12-30 16:41:17 +01:00
parent 729b72c1d9
commit 70d4d77266
2 changed files with 38 additions and 14 deletions

View File

@@ -42,13 +42,16 @@ public:
std::string m_name;
std::string m_value;
std::vector<DefineParameterPosition> m_parameter_positions;
std::vector<unsigned> m_token_joins;
Define();
Define(std::string name, std::string value);
void IdentifyParameters(const std::vector<std::string>& parameterNames);
private:
static bool IsStringizeParameter(const std::string& value, unsigned pos);
static bool IsStringizeParameterBackwardsLookup(const std::string& value, unsigned pos);
static bool IsTokenJoiningOperatorForwardLookup(const std::string& value, unsigned pos);
void IdentifyTokenJoinsOnly();
};
enum class ParameterState : uint8_t