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

Method AreFilePathsEqual

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

Source from the content-addressed store, hash-verified

78}
79
80bool FileSystemBase::AreFilePathsEqual(const StringView& path1, const StringView& path2)
81{
82 if (path1.Compare(path2, StringSearchCase::CaseSensitive) == 0)
83 return true;
84
85 // Normalize file paths
86 String filename1(path1);
87 String filename2(path2);
88 NormalizePath(filename1);
89 NormalizePath(filename2);
90
91 return filename1.Compare(filename2, StringSearchCase::IgnoreCase) == 0;
92}
93
94void FileSystemBase::NormalizePath(String& path)
95{

Callers

nothing calls this directly

Calls 2

NormalizePathFunction · 0.85
CompareMethod · 0.45

Tested by

no test coverage detected