#include "qfilesystementry_p.h"
#include <QtCore/qdir.h>
#include <QtCore/qfile.h>
#include <QtCore/private/qfsfileengine_p.h>
#include <QtCore/qstringbuilder.h>
Go to the source code of this file.
◆ fixIfRelativeUncPath()
Definition at line 68 of file qfilesystementry.cpp.
Referenced by QFileSystemEntry::resolveNativeFilePath().
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
The QString class provides a Unicode character string.
static QString currentPath()
Returns the absolute path of the application's current directory.
The QChar class provides a 16-bit Unicode character.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ isUncRoot()
static bool isUncRoot |
( |
const QString & |
server | ) |
|
|
static |
Definition at line 54 of file qfilesystementry.cpp.
Referenced by QFileSystemEntry::isRoot().
61 if (idx == -1 || idx + 1 == localPath.
length())
int length() const
Returns the number of characters in this string.
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
The QString class provides a Unicode character string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QString right(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n rightmost characters of the string.
QString trimmed(QString source)
static QString toNativeSeparators(const QString &pathName)
Returns pathName with the '/' separators converted to separators that are appropriate for the underly...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.