MCPcopy Create free account
hub / github.com/ByConity/ByConity / capturingNamedQueryParam

Function capturingNamedQueryParam

src/Server/HTTPHandler.cpp:1125–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125static inline bool capturingNamedQueryParam(NameSet receive_params, const CompiledRegexPtr & compiled_regex)
1126{
1127 const auto & capturing_names = compiled_regex->NamedCapturingGroups();
1128 return std::count_if(capturing_names.begin(), capturing_names.end(), [&](const auto & iterator)
1129 {
1130 return std::count_if(receive_params.begin(), receive_params.end(),
1131 [&](const auto & param_name) { return param_name == iterator.first; });
1132 });
1133}
1134
1135static inline CompiledRegexPtr getCompiledRegex(const std::string & expression)
1136{

Callers 1

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected