MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / compareFilenames

Function compareFilenames

JUCE/modules/juce_core/files/juce_File.cpp:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247static int compareFilenames (const String& name1, const String& name2) noexcept
248{
249 #if NAMES_ARE_CASE_SENSITIVE
250 return name1.compare (name2);
251 #else
252 return name1.compareIgnoreCase (name2);
253 #endif
254}
255
256bool File::operator== (const File& other) const { return compareFilenames (fullPath, other.fullPath) == 0; }
257bool File::operator!= (const File& other) const { return compareFilenames (fullPath, other.fullPath) != 0; }

Callers 5

operator==Method · 0.85
operator!=Method · 0.85
operator<Method · 0.85
operator>Method · 0.85
isAChildOfMethod · 0.85

Calls 2

compareMethod · 0.45
compareIgnoreCaseMethod · 0.45

Tested by

no test coverage detected