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>.
Loading...
Searching...
No Matches
qdir_p.h File Reference

(94057bd800577b6cc770d93a235859e280ed1c63)

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

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