15 #ifndef OPENSCENARIO_INTERPRETER__REGEX__FUNCTION_CALL_EXPRESSION_HPP_
16 #define OPENSCENARIO_INTERPRETER__REGEX__FUNCTION_CALL_EXPRESSION_HPP_
22 inline namespace regex
39 std::regex(R
"(^([\w@]+)(\(((?:(?:[^\("\s,\)]+|\"[^"]*\"),?\s*)*)\))?$)");
45 static const auto pattern = std::regex(R
"(([^\("\s,\)]+|\"[^"]*\"),?\s*)");
47 std::vector<std::string> args;
49 for (
auto iter = std::sregex_iterator(std::begin(s), std::end(s),
pattern);
50 iter != std::sregex_iterator(); ++iter) {
51 args.emplace_back((*iter)[1]);
std::string string
Definition: junit5.hpp:26
Definition: function_call_expression.hpp:25
static auto splitParameters(const std::string &s) -> std::vector< std::string >
Definition: function_call_expression.hpp:43
static auto pattern() -> const auto &
Definition: function_call_expression.hpp:36