![]() |
Qt 6.x
The Qt SDK
|
#include "qplatformdefs.h"
#include "qdir.h"
#include "qdir_p.h"
#include "qabstractfileengine_p.h"
#include "qfsfileengine_p.h"
#include "qdebug.h"
#include "qdiriterator.h"
#include "qdatetime.h"
#include "qstring.h"
#include "qvarlengtharray.h"
#include "qfilesystementry_p.h"
#include "qfilesystemmetadata_p.h"
#include "qfilesystemengine_p.h"
#include <qstringbuilder.h>
#include <qcollator.h>
#include "qreadwritelock.h"
#include "qmutex.h"
#include <algorithm>
#include <memory>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | QDirSortItem |
class | QDirSortItemComparator |
Enumerations | |
enum | { OSSupportsUncPaths = false } |
Functions | |
static qsizetype | rootLength (QStringView name, bool allowUncPaths) |
static bool | treatAsAbsolute (const QString &path) |
static QString | qt_cleanPath (const QString &path, bool *ok=nullptr) |
QString | qt_normalizePathSegments (const QString &name, QDirPrivate::PathNormalizations flags, bool *ok) |
QDebug | operator<< (QDebug debug, QDir::Filters filters) |
static QDebug | operator<< (QDebug debug, QDir::SortFlags sorting) |
QDebug | operator<< (QDebug debug, const QDir &dir) |
Definition at line 2444 of file qdir.cpp.
References QDir::AllDirs, QDir::AllEntries, QDir::CaseSensitive, debug, QDir::Dirs, QDir::Drives, QDir::Executable, QDir::Files, filters, QDir::Hidden, QDir::Modified, QDir::NoDot, QDir::NoDotDot, QDir::NoFilter, QDir::NoSymLinks, QDir::Readable, QDir::System, and QDir::Writable.
Definition at line 2472 of file qdir.cpp.
References debug, QDir::DirsFirst, QDir::DirsLast, QDir::IgnoreCase, QDir::LocaleAware, QDir::Name, QDir::NoSort, QDir::Size, QDir::SortByMask, QDir::Time, QDir::Type, and QDir::Unsorted.
Definition at line 2362 of file qdir.cpp.
References QDirPrivate::AllowUncPaths, QDirPrivate::DefaultNormalization, QDir::fromNativeSeparators(), ok, OSSupportsUncPaths, Q_ASSERT, qt_normalizePathSegments(), and ret.
Referenced by QDir::cd(), and QDir::cleanPath().
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().
|
static |
Definition at line 61 of file qdir.cpp.
Referenced by qt_normalizePathSegments().
|
static |
Definition at line 754 of file qdir.cpp.
References QFileSystemEntry::isAbsolute().
Referenced by QDir::absoluteFilePath(), and QDir::filePath().