Improve path extension handling

PR #16867.
This commit is contained in:
Vladimir Golovnev
2022-04-14 09:43:07 +03:00
committed by GitHub
parent 669b67e666
commit 7377974731
5 changed files with 16 additions and 15 deletions

View File

@@ -58,10 +58,11 @@ public:
QString filename() const;
QString extension() const;
bool hasExtension(const QString &ext) const;
bool hasExtension(QStringView ext) const;
void removeExtension();
Path removedExtension() const;
void removeExtension(const QString &ext);
void removeExtension(QStringView ext);
Path removedExtension(QStringView ext) const;
bool hasAncestor(const Path &other) const;
Path relativePathOf(const Path &childPath) const;