SNode.C
Loading...
Searching...
No Matches
regex_utils.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  express
 
namespace  express::dispatcher
 

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)
 
void express::dispatcher::splitPathAndQuery (std::string_view url, std::string_view &path, std::string_view &query)
 
std::unordered_map< std::string, std::string > express::dispatcher::parseQuery (std::string_view qs)
 
std::string_view express::dispatcher::trimOneTrailingSlash (std::string_view s)
 
bool express::dispatcher::ieq (char a, char b)
 
bool express::dispatcher::equalPath (std::string_view a, std::string_view b, bool caseInsensitive)
 
bool express::dispatcher::boundaryPrefix (std::string_view path, std::string_view base, bool caseInsensitive)
 
bool express::dispatcher::querySupersetMatches (const std::unordered_map< std::string, std::string > &rq, const std::unordered_map< std::string, std::string > &need)
 
std::pair< std::regex, std::vector< std::string > > express::dispatcher::compileParamRegex (std::string_view mountPath, bool isPrefix, bool strictRouting, bool caseInsensitive)
 
template<typename RequestLike >
bool express::dispatcher::matchAndFillParams (const std::regex &rx, const std::vector< std::string > &names, std::string_view reqPath, RequestLike &req)