MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsRelative

Method IsRelative

Source/Engine/Platform/Base/FileSystemBase.cpp:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool FileSystemBase::IsRelative(const StringView& path)
104{
105 const bool isRooted =
106 (path.Length() >= 2 && StringUtils::IsAlpha(path[0]) && path[1] == ':') ||
107 path.StartsWith(StringView(TEXT("\\\\"), 2), StringSearchCase::CaseSensitive) ||
108 path.StartsWith('\\') ||
109 path.StartsWith('/');
110 return !isRooted;
111}
112
113String FileSystemBase::GetExtension(const StringView& path)
114{

Callers 5

SetCursorLockMethod · 0.45
OnButtonPressMethod · 0.45
WndProcMethod · 0.45
MacWindow.cppFile · 0.45
ToPathAbsoluteMethod · 0.45

Calls 3

StringViewClass · 0.50
LengthMethod · 0.45
StartsWithMethod · 0.45

Tested by

no test coverage detected