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

Function RemoveFinalSlash

library/cpp/string_utils/url/url.cpp:444–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444TStringBuf RemoveFinalSlash(TStringBuf str Y_LIFETIME_BOUND) noexcept {
445 if (str.EndsWith('/')) {
446 str.Chop(1);
447 }
448 return str;
449}
450
451TStringBuf CutUrlPrefixes(TStringBuf url Y_LIFETIME_BOUND) noexcept {
452 url = CutSchemePrefix(url);

Callers

nothing calls this directly

Calls 2

ChopMethod · 0.80
EndsWithMethod · 0.45

Tested by

no test coverage detected