Function URI::Template::MatchLiteral¶
Defined in File Matcher.h
Function Documentation¶
-
std::optional<Match>
URI::Template
::
MatchLiteral
(const Literal &literal, const std::string &where, std::size_t start, bool exact_start)¶ Lookup for a literal.
Returns result of searching for a match of
literal
inwhere
, starting from positionstart
.- Parameters
[in] literal – A literal to match.
[in] where – A string where to lookup for a match.
[in] start – Position to start lookup at.
[in] exact_start – If true then .
- Returns
Match instance wrapped in std::optional or std::nullopt.