MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeTrailingSlashes

Function removeTrailingSlashes

plugins/grepview/grepfindthread.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26namespace {
27QString removeTrailingSlashes(QString dirPath)
28{
29 while (!dirPath.isEmpty() && std::as_const(dirPath).back() == QLatin1Char{'/'}) {
30 dirPath.chop(1);
31 }
32 return dirPath;
33}
34
35/**
36 * Is the file at @p filePath in the directory at @p dirPath within a maximum depth of @p maxDepth?

Callers 1

getProjectFilesMethod · 0.85

Calls 2

isEmptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected