65 tokens.resize(expr.size());
80 int ntsize = name_tokens.size();
82 int num_expr =
tokens.size();
83 for (
int i = 0;
i < num_expr; ++
i) {
85 int jstop =
token.size();
88 for (
int j = 0; j < jstop; ++j) {
92 const std::string &var =
token[j];
93 if (var !=
"*" && var != name_tokens[j]) {
110 for (
const auto &expression:
tokens) {
112 to_add.insert(to_add.end(), expression.begin(), expression.end());
113 to_return.push_back(to_add);
ObjectMatch contains a vector of expressions.
void setExpression(const std::string &expression)
void add(const ObjectMatch &other)
std::vector< std::vector< std::string > > getExpressions()
bool match(const std::string &name) const
bool domatch(const std::string &name) const
std::vector< std::vector< std::string > > tokens
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
void tokenize(std::vector< std::string > &v, const std::string &s, char token, bool ignore)
const std::string & name()