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

Function HasLowerHost

library/cpp/string_utils/url/url.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 bool HasLowerHost(const TStringBuf url) {
75 for (size_t n = 0; n < url.length(); ++n) {
76 if (url[n] == '/')
77 break;
78 if (isupper(url[n]))
79 return false;
80 }
81 return true;
82 }
83
84 TStringBuf CutHttpWwwPrefixes(const TStringBuf url Y_LIFETIME_BOUND) {
85 TStringBuf urlCut = CutWWWPrefix(CutHttpPrefix(url));

Callers 1

MakeNormalizedFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected