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

Function GetBaseName

util/folder/dirut.cpp:593–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591#endif
592
593TString GetBaseName(const TString& path) {
594 return TFsPath(path).Basename();
595}
596
597static bool IsAbsolutePath(const char* str) {
598 return str && TPathSplitTraitsLocal::IsAbsolutePath(TStringBuf(str, NStringPrivate::GetStringLengthWithLimit(str, 3)));

Callers 1

ResolvePathFunction · 0.85

Calls 2

TFsPathClass · 0.70
BasenameMethod · 0.45

Tested by

no test coverage detected