Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qdir_p.h File Reference
#include "qfilesystementry_p.h"
#include "qfilesystemmetadata_p.h"
#include <QtCore/qmutex.h>
#include <memory>
+ Include dependency graph for qdir_p.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ qt_normalizePathSegments()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: