Function URI::Template::ExpandExpression¶
Defined in File Expander.h
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
expressioninto a string according to the rules from https://tools.ietf.org/html/rfc6570#section-3.2. Usesvaluesto 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.