Classes | |
| struct | MountMatchResult |
| class | ScopedPathStrip |
| class | ScopedParams |
| class | ApplicationDispatcher |
| class | MiddlewareDispatcher |
| class | RouterDispatcher |
Functions | |
| bool | isParamNameChar (const char c) |
| bool | routeNeedsRegex (std::string_view path) |
| bool | isRegexMetaToEscape (const char c) |
| void | appendEscapedLiteral (std::string &out, const char c) |
| bool | extractBalancedParenInner (std::string_view s, const std::size_t openPos, std::string &innerOut, std::size_t &closePosOut) |
| std::string | makeInnerGroupsNonCapturing (std::string_view pattern) |
| int | hexToInt (const char c) |
| bool | decodeURIComponent (std::string_view in, std::string &out) |
| std::string | decodeQueryComponent (std::string_view in) |
| bool | matchAndFillParamsAndConsume (const std::regex &rx, const std::vector< std::string > &names, std::string_view reqPath, std::map< std::string, std::string > ¶ms, std::size_t &consumedLength, bool &decodeError) |
| std::unordered_map< std::string, std::string > | parseQuery (std::string_view qs) |
| std::pair< std::regex, std::vector< std::string > > | compileParamRegex (std::string_view mountPath, bool isPrefix, bool strictRouting, bool caseInsensitive) |
| bool | boundaryPrefix (std::string_view path, std::string_view base, bool caseInsensitive) |
| bool | equalPath (std::string_view a, std::string_view b, bool caseInsensitive) |
| std::string_view | trimOneTrailingSlash (std::string_view s) |
| void | splitPathAndQuery (std::string_view url, std::string_view &path, std::string_view &query) |
| bool | methodMatches (std::string_view requestMethod, const std::string &mountMethod) |
| std::string | joinMountPath (std::string_view parentMountPath, std::string_view relativeMountPath) |
| static MountMatchResult | matchMountPointImpl (express::Controller &controller, const std::string &absoluteMountPath, const express::MountPoint &mountPoint, std::regex *cachedRegex, std::vector< std::string > *cachedNames, bool strictRouting, bool caseInsensitiveRouting) |
| MountMatchResult | matchMountPoint (express::Controller &controller, const std::string &absoluteMountPath, const express::MountPoint &mountPoint, std::regex &cachedRegex, std::vector< std::string > &cachedNames, bool strictRouting, bool caseInsensitiveRouting) |
| bool | ieq (char a, char b) |
|
inline |
Definition at line 105 of file regex_utils.cpp.
References isRegexMetaToEscape().
Referenced by compileParamRegex().
|
inline |
Definition at line 527 of file regex_utils.cpp.
Referenced by matchMountPointImpl().
|
inline |
Definition at line 339 of file regex_utils.cpp.
References appendEscapedLiteral(), extractBalancedParenInner(), isParamNameChar(), and makeInnerGroupsNonCapturing().
Referenced by matchMountPointImpl().
|
inline |
Definition at line 258 of file regex_utils.cpp.
References hexToInt().
Referenced by parseQuery().
|
inline |
Definition at line 233 of file regex_utils.cpp.
References hexToInt().
Referenced by matchAndFillParamsAndConsume().
|
inline |
Definition at line 559 of file regex_utils.cpp.
References ieq().
Referenced by matchMountPointImpl().
|
inline |
Definition at line 113 of file regex_utils.cpp.
Referenced by compileParamRegex().
|
inline |
Definition at line 220 of file regex_utils.cpp.
Referenced by decodeQueryComponent(), and decodeURIComponent().
|
inline |
Definition at line 66 of file regex_utils.h.
Referenced by equalPath().
|
inline |
Definition at line 59 of file regex_utils.cpp.
Referenced by compileParamRegex().
|
inline |
Definition at line 83 of file regex_utils.cpp.
Referenced by appendEscapedLiteral().
| std::string express::dispatcher::joinMountPath | ( | std::string_view | parentMountPath, |
| std::string_view | relativeMountPath ) |
Definition at line 597 of file regex_utils.cpp.
Referenced by express::dispatcher::ApplicationDispatcher::getRoutes(), express::dispatcher::MiddlewareDispatcher::getRoutes(), and express::dispatcher::ScopedPathStrip::ScopedPathStrip().
|
inline |
Definition at line 168 of file regex_utils.cpp.
Referenced by compileParamRegex().
|
inline |
Definition at line 283 of file regex_utils.cpp.
References decodeURIComponent().
Referenced by matchMountPointImpl().
| MountMatchResult express::dispatcher::matchMountPoint | ( | express::Controller & | controller, |
| const std::string & | absoluteMountPath, | ||
| const express::MountPoint & | mountPoint, | ||
| std::regex & | cachedRegex, | ||
| std::vector< std::string > & | cachedNames, | ||
| bool | strictRouting, | ||
| bool | caseInsensitiveRouting ) |
Definition at line 701 of file regex_utils.cpp.
References matchMountPointImpl().
Referenced by express::dispatcher::ApplicationDispatcher::dispatch(), express::dispatcher::MiddlewareDispatcher::dispatch(), and express::dispatcher::RouterDispatcher::dispatch().
|
static |
Definition at line 621 of file regex_utils.cpp.
References boundaryPrefix(), compileParamRegex(), express::dispatcher::MountMatchResult::consumedLength, express::dispatcher::MountMatchResult::decodeError, equalPath(), express::Controller::getRequest(), express::dispatcher::MountMatchResult::isPrefix, matchAndFillParamsAndConsume(), express::MountPoint::method, express::dispatcher::MountMatchResult::params, parseQuery(), express::dispatcher::MountMatchResult::requestMatched, express::dispatcher::MountMatchResult::requestPath, express::dispatcher::MountMatchResult::requestQueryPairs, routeNeedsRegex(), splitPathAndQuery(), trimOneTrailingSlash(), and express::Request::url.
Referenced by matchMountPoint().
| bool express::dispatcher::methodMatches | ( | std::string_view | requestMethod, |
| const std::string & | mountMethod ) |
Definition at line 589 of file regex_utils.cpp.
Referenced by express::dispatcher::ApplicationDispatcher::dispatch(), express::dispatcher::MiddlewareDispatcher::dispatch(), and express::dispatcher::RouterDispatcher::dispatch().
|
inline |
Definition at line 312 of file regex_utils.cpp.
References decodeQueryComponent().
Referenced by matchMountPointImpl().
|
inline |
Definition at line 65 of file regex_utils.cpp.
Referenced by matchMountPointImpl().
|
inline |
Definition at line 578 of file regex_utils.cpp.
Referenced by matchMountPointImpl(), and express::dispatcher::ScopedPathStrip::ScopedPathStrip().
|
inline |
Definition at line 571 of file regex_utils.cpp.
Referenced by matchMountPointImpl(), and express::dispatcher::ScopedPathStrip::ScopedPathStrip().