Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 2208 of file qdir.cpp.
References QDirPrivate::AllowUncPaths, i, ok, out, QDirPrivate::RemotePath, rootLength(), QString::size(), and QStringView::toString().
Referenced by QUrlPrivate::appendPath(), and qt_cleanPath().