FileFinder: FilePathify

Change-Id: I7a4bcb05f85058ddcaf0c69c01b0587116410d95
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-12-22 15:33:22 +01:00
parent 09df8dfe44
commit 15fa9e7096
5 changed files with 93 additions and 81 deletions

View File

@@ -1038,6 +1038,15 @@ bool FilePath::endsWith(const QString &s) const
return pathView().endsWith(s, caseSensitivity());
}
/*!
* \param s The string to check for contains.
* \returns whether FilePath contains \a s
*/
bool FilePath::contains(const QString &s) const
{
return pathView().contains(s, caseSensitivity());
}
/*!
* \brief Checks whether the FilePath starts with a drive letter.
* Defaults to \c false if it is a non-Windows host or represents a path on device