Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
CPPHTTPLIB_NAMESPACE::detail::RegexMatcher Class Referencefinal
Inheritance diagram for CPPHTTPLIB_NAMESPACE::detail::RegexMatcher:
Collaboration diagram for CPPHTTPLIB_NAMESPACE::detail::RegexMatcher:

Public Member Functions

 RegexMatcher (const std::string &pattern)
bool match (Request &request) const override
Public Member Functions inherited from CPPHTTPLIB_NAMESPACE::detail::MatcherBase
 MatcherBase (std::string pattern)
const std::string & pattern () const

Private Attributes

Regex regex_

Detailed Description

Performs RegexMatch on request path and stores the result in Request::matches

Note that regex match is performed directly on the whole request. This means that wildcard patterns may match multiple path segments with /: "/begin/(.*)/end" will match both "/begin/middle/end" and "/begin/1/2/end".

Constructor & Destructor Documentation

◆ RegexMatcher()

CPPHTTPLIB_NAMESPACE::detail::RegexMatcher::RegexMatcher ( const std::string & pattern)
inline
282553 : MatcherBase(pattern), regex_(pattern) {}

Member Function Documentation

◆ match()

bool CPPHTTPLIB_NAMESPACE::detail::RegexMatcher::match ( Request & request) const
inlineoverridevirtual

Implements CPPHTTPLIB_NAMESPACE::detail::MatcherBase.

288833 {
288834 request.path_params.clear();
288835 return RegexMatch(request.path, request.matches, regex_);
288836}

The documentation for this class was generated from the following file: