SNode.C
Loading...
Searching...
No Matches
regex_utils.cpp File Reference
Include dependency graph for regex_utils.cpp:

Go to the source code of this file.

Namespaces

namespace  express
namespace  express::dispatcher

Functions

bool express::dispatcher::isParamNameChar (const char c)
bool express::dispatcher::routeNeedsRegex (std::string_view path)
bool express::dispatcher::isRegexMetaToEscape (const char c)
void express::dispatcher::appendEscapedLiteral (std::string &out, const char c)
bool express::dispatcher::extractBalancedParenInner (std::string_view s, const std::size_t openPos, std::string &innerOut, std::size_t &closePosOut)
std::string express::dispatcher::makeInnerGroupsNonCapturing (std::string_view pattern)
int express::dispatcher::hexToInt (const char c)
bool express::dispatcher::decodeURIComponent (std::string_view in, std::string &out)
std::string express::dispatcher::decodeQueryComponent (std::string_view in)
bool express::dispatcher::matchAndFillParamsAndConsume (const std::regex &rx, const std::vector< std::string > &names, std::string_view reqPath, std::map< std::string, std::string > &params, std::size_t &consumedLength, bool &decodeError)
std::unordered_map< std::string, std::string > express::dispatcher::parseQuery (std::string_view qs)
std::pair< std::regex, std::vector< std::string > > express::dispatcher::compileParamRegex (std::string_view mountPath, bool isPrefix, bool strictRouting, bool caseInsensitive)
bool express::dispatcher::boundaryPrefix (std::string_view path, std::string_view base, bool caseInsensitive)
bool express::dispatcher::equalPath (std::string_view a, std::string_view b, bool caseInsensitive)
std::string_view express::dispatcher::trimOneTrailingSlash (std::string_view s)
void express::dispatcher::splitPathAndQuery (std::string_view url, std::string_view &path, std::string_view &query)
bool express::dispatcher::methodMatches (std::string_view requestMethod, const std::string &mountMethod)
std::string express::dispatcher::joinMountPath (std::string_view parentMountPath, std::string_view relativeMountPath)
static MountMatchResult express::dispatcher::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 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)