Function URI::Template::MatchLiteral

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 in where, starting from position start.

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.