MCPcopy Create free account
hub / github.com/apache/trafficserver / ContainsPrefix

Function ContainsPrefix

plugins/authproxy/utils.h:115–119  ·  view source on GitHub ↗

Check if the string contains the prefix

Source from the content-addressed store, hash-verified

113
114// Check if the string contains the prefix
115inline bool
116ContainsPrefix(const std::string_view str, const std::string &prefix)
117{
118 return str.size() < prefix.size() ? false : (strncasecmp(str.data(), prefix.data(), prefix.size()) == 0);
119}
120// vim: set ts=4 sw=4 et :

Callers 2

StateAuthorizedFunction · 0.85
authproxy_test.ccFile · 0.85

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected