MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / matchesFilePattern

Method matchesFilePattern

tools/FileSearchUtils.cpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool FileSearchUtils::matchesFilePattern(const QString &fileName, const QString &pattern)
205{
206 if (pattern.isEmpty())
207 return true;
208
209 if (pattern.startsWith("*.")) {
210 QString extension = pattern.mid(1);
211 return fileName.endsWith(extension, Qt::CaseInsensitive);
212 }
213
214 return fileName.compare(pattern, Qt::CaseInsensitive) == 0;
215}
216
217QString FileSearchUtils::readFileContent(const QString &filePath)
218{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected