19 #include <torquescript/storedvaluestack.hpp>
23 std::string toLowerCase(
const std::string& in);
24 std::string expandEscapeSequences(
const std::string& in);
26 static std::string resolveArrayNameFromStack(StoredValueStack& stack, std::shared_ptr<ExecutionState> state,
const std::string& base,
const std::size_t argumentCount)
28 std::vector<std::string> variableComponents;
29 for (
unsigned int iteration = 0; iteration < argumentCount; ++iteration)
31 variableComponents.push_back(stack.popString(state));
34 std::ostringstream out;
36 for (
auto iterator = variableComponents.rbegin(); iterator != variableComponents.rend(); ++iterator)
38 if (iterator != variableComponents.rbegin())
48 static std::string resolveArrayName(
const std::string& base)
53 template <
typename... parameters>
54 static std::string resolveArrayName(
const std::string& base,
const int value, parameters... params)
56 return TorqueScript::resolveArrayName(base +
"_" + std::to_string(value), params...);
59 template <
typename... parameters>
60 static std::string resolveArrayName(
const std::string& base,
const float value, parameters... params)
62 return TorqueScript::resolveArrayName(base +
"_" + std::to_string(value), params...);