forked from qt-creator/qt-creator
FileFinder: FilePathify
Change-Id: I7a4bcb05f85058ddcaf0c69c01b0587116410d95 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user