Function URI::Template::ExpandExpression

Function Documentation

std::string URI::Template::ExpandExpression(const Expression &expression, const std::unordered_map<std::string, VarValue> &values)

Expands a single template expression.

Expands an expression into a string according to the rules from https://tools.ietf.org/html/rfc6570#section-3.2. Uses values to locate variables values that are expanded. Variables which are not in the map treated as undefined.

Parameters
  • [in] expression – A template expression to expand.

  • [in] values – Variables values to use for expansion.

Returns

Expansion result.