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

Function MakeLowerHost

library/cpp/string_utils/url/url.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 TString MakeLowerHost(const TStringBuf url, size_t shift) {
92 TString urlFixed(url);
93 for (char *c = urlFixed.begin() + shift; *c && (*c != '/'); ++c) {
94 *c = tolower(*c);
95 }
96
97 return urlFixed;
98 }
99
100 TString MakeNormalized(const TStringBuf url) {
101 TStringBuf urlCut = CutHttpWwwPrefixes(url);

Callers 1

MakeNormalizedFunction · 0.85

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected