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

Function GetZone

library/cpp/string_utils/url/url.cpp:329–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329TStringBuf GetZone(const TStringBuf host Y_LIFETIME_BOUND) noexcept {
330 return GetParentDomain(host, 1);
331}
332
333TStringBuf CutWWWPrefix(const TStringBuf url Y_LIFETIME_BOUND) noexcept {
334 if (url.size() >= 4 && url[3] == '.' && !strnicmp(url.data(), "www", 3))

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

GetParentDomainFunction · 0.85

Tested by

no test coverage detected