MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / SameFileName

Function SameFileName

src/Utils/Config/ConfigFileWatcher.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24constexpr uint32_t kDebounceMs = 500;
25
26bool SameFileName(std::string_view lhs, std::string_view rhs) {
27 if (lhs.size() != rhs.size()) return false;
28 for (size_t i = 0; i < lhs.size(); ++i) {
29 if (std::tolower(static_cast<unsigned char>(lhs[i])) !=
30 std::tolower(static_cast<unsigned char>(rhs[i]))) {
31 return false;
32 }
33 }
34 return true;
35}
36
37bool ContainsConfigChange(
38 const std::vector<OSTPlatform::DirectoryWatch::Change>& changes,

Callers 1

ContainsConfigChangeFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected