MCPcopy Create free account
hub / github.com/comaps/comaps / GetProtocolNameLength

Function GetProtocolNameLength

libs/indexer/validate_and_format_contacts.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63constexpr string_view kHttps{"https://"};
64
65size_t GetProtocolNameLength(string const & website)
66{
67 if (website.starts_with(kHttps))
68 return kHttps.size();
69 if (website.starts_with(kHttp))
70 return kHttp.size();
71 return 0;
72}
73
74bool IsProtocolSpecified(string const & website)
75{

Callers 2

IsProtocolSpecifiedFunction · 0.85
ValidateWebsiteFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected