Function URI::Template::MatchVarValue

Function Documentation

std::optional<VarValue> URI::Template::MatchVarValue(const Variable &var, const Operator &oper, std::optional<std::string> &&where)

Lookup for variable value.

Returns result of searching for a value of var in where consistent with the operator oper.

Parameters
  • [in] varVariable definition to lookup value for.

  • [in] operTemplate operator for var.

  • [in] where – A string where to lookup for a match.

Returns

VarValue instance wrapped in std::optional or std::nullopt.