![]() |
Qt 6.x
The Qt SDK
|
#include "qfilesystementry_p.h"
#include "qfilesystemmetadata_p.h"
#include <QtCore/qmutex.h>
#include <memory>
Go to the source code of this file.
Classes | |
class | QDirPrivate |
struct | QDirPrivate::FileCache |
Functions | |
Q_AUTOTEST_EXPORT QString | qt_normalizePathSegments (const QString &name, QDirPrivate::PathNormalizations flags, bool *ok=nullptr) |
Q_AUTOTEST_EXPORT QString qt_normalizePathSegments | ( | const QString & | name, |
QDirPrivate::PathNormalizations | flags, | ||
bool * | ok | ||
) |
Returns path with redundant directory separators removed, and "."s and ".."s resolved (as far as possible).
This method is shared with QUrl, so it doesn't deal with QDir::separator(), nor does it remove the trailing slash, if any.
Definition at line 2204 of file qdir.cpp.
References QDirPrivate::AllowUncPaths, QVarLengthArray< T, Prealloc >::data(), QString::fromUtf16(), i, ok, out, QDirPrivate::RemotePath, rootLength(), and QString::size().
Referenced by QUrlPrivate::appendPath(), and qt_cleanPath().