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
 

Macros

#define PATH_REGEX   ":[a-zA-Z0-9]+(\\‍(.+\\‍))?"
 

Functions

std::vector< std::string > express::dispatcher::explode (const std::string &input, char delim)
 
const std::regex & express::dispatcher::pathRegex ()
 
std::smatch express::dispatcher::matchResult (const std::string &cpath)
 
bool express::dispatcher::hasResult (const std::string &cpath)
 
void express::dispatcher::setParams (const std::string &cpath, Request &req)
 
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::querySupersetMatches (const std::unordered_map< std::string, std::string > &rq, const std::unordered_map< std::string, std::string > &need)
 
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)
 

Macro Definition Documentation

◆ PATH_REGEX

#define PATH_REGEX   ":[a-zA-Z0-9]+(\\‍(.+\\‍))?"

Definition at line 81 of file regex_utils.cpp.