MCPcopy Create free account
hub / github.com/catboost/catboost / CutHttpPrefixImpl

Function CutHttpPrefixImpl

library/cpp/string_utils/url/url.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 template <typename T>
57 inline T CutHttpPrefixImpl(const T& url, bool ignorehttps) {
58 size_t prefixSize = GetHttpPrefixSizeImpl<typename T::char_type>(url.data(), TKnownSize(url.size()), ignorehttps);
59 if (prefixSize)
60 return url.substr(prefixSize);
61 return url;
62 }
63}
64
65namespace NUrl {

Callers 1

CutHttpPrefixFunction · 0.85

Calls 4

TKnownSizeClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected