Function URI::Template::MatchURI¶
Defined in File Matcher.h
Function Documentation¶
-
bool
URI::Template
::
MatchURI
(const Template &uri_template, const std::string &uri, std::unordered_map<std::string, VarValue> *values = nullptr)¶ Lookup for URI-template.
Returns result of searching for a expansion of an
uri_template
inuri
. Template considered matched if its’ expansion does not contradict definition, i.e. all literals are in place and all expressions doesn’t have any violation in their expansions.- Parameters
[in] uri_template – Template to lookup for.
[in] uri – An URI where to lookup for a match.
[out] values – Map of template variables values found in the string. Not expanded variables will be filled with VarType::UNDEFINED.
- Returns
true if template matched, false – if not.