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

Function CutHttpWwwPrefixes

library/cpp/string_utils/url/url.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 TStringBuf CutHttpWwwPrefixes(const TStringBuf url Y_LIFETIME_BOUND) {
85 TStringBuf urlCut = CutWWWPrefix(CutHttpPrefix(url));
86 if (!urlCut.empty() && urlCut.back() == '/')
87 urlCut = urlCut.substr(0, urlCut.length() - 1);
88 return urlCut;
89 }
90
91 TString MakeLowerHost(const TStringBuf url, size_t shift) {
92 TString urlFixed(url);

Callers 1

MakeNormalizedFunction · 0.85

Calls 6

CutWWWPrefixFunction · 0.85
CutHttpPrefixFunction · 0.85
emptyMethod · 0.45
backMethod · 0.45
substrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected