omni::extras::isPathEqual
Defined in omni/extras/StringHelpers.h
-
inline bool omni::extras::isPathEqual(const std::string &strLeft, const std::string &strRight)
Checks if two given file paths are equal with case sensitivity based on the platform.
Note
This is intended for file paths only. URLs are case sensitive.
Warning
For Windows, this function checks for ASCII case-insensitivity only. UTF-8 encoding and locale are ignored. Therefore, this function does not work properly with Windows paths that may contain non-ASCII characters and its use should be avoided.
- Parameters
strLeft – The first path to compare
strRight – The second path to compare
- Returns
true
ifstrLeft
andstrRight
are equal paths with the caveats presented above;false
otherwise