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

Function SplitUrlToHostAndPath

library/cpp/string_utils/url/url.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65namespace NUrl {
66
67 TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url) {
68 TStringBuf host = GetSchemeHostAndPort(url, /*trimHttp=*/false, /*trimDefaultPort=*/false);
69 TStringBuf path = url;
70 path.SkipPrefix(host);
71 return {host, path};
72 }
73
74 bool HasLowerHost(const TStringBuf url) {
75 for (size_t n = 0; n < url.length(); ++n) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

GetSchemeHostAndPortFunction · 0.85
SkipPrefixMethod · 0.80

Tested by

no test coverage detected