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

Method IsPathSep

util/folder/pathsplit.h:50–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 static constexpr bool IsPathSep(char c) noexcept {
51 return c == '/' || c == '\\';
52 }
53
54 static inline bool IsAbsolutePath(const TStringBuf path) noexcept {
55 return path && (IsPathSep(path[0]) || (path.size() > 1 && path[1] == ':' && IsAsciiAlpha(path[0]) && (path.size() == 2 || IsPathSep(path[2]))));

Callers 1

DoParsePartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected