![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qqmlfile.h"#include <QtCore/qurl.h>#include <QtCore/qobject.h>#include <QtCore/qmetaobject.h>#include <QtCore/qfile.h>#include <private/qqmlengine_p.h>#include <private/qqmlglobal_p.h>#include <private/qurl_p.h>#include "qqmlfile.moc"Go to the source code of this file.
Functions | |
| static bool | hasScheme (const QString &url, QLatin1StringView scheme) |
| static qsizetype | authorityOffset (const QString &url, qsizetype schemeLength) |
| static QString | toLocalFile (const QString &url) |
| static bool | isDoubleSlashed (const QString &url, qsizetype offsetoffset) |
| static QStringView | stripQueryAndFragment (QStringView pathpath) |
| static bool | needsDecoding (QStringView pathpath) |
| static QString | qrcPathToLocalPath (const QString &url, QStringView pathpath) |
Variables | |
| static constexpr QLatin1StringView | qrc_string { "qrc" } |
| static constexpr QLatin1StringView | file_string { "file" } |
Definition at line 649 of file qqmlfile.cpp.
|
static |
Definition at line 632 of file qqmlfile.cpp.
Definition at line 778 of file qqmlfile.cpp.
|
static |
Definition at line 814 of file qqmlfile.cpp.
|
static |
Definition at line 823 of file qqmlfile.cpp.
|
static |
Returns path, the remainder of a URL string after the scheme, without its query and fragment.
This is safe because path is part of a URL, not a file name: In a URL, the path ends at the first '?' or '#'. A literal '?' or '#' that is part of a path segment has to be percent-encoded, so the first unencoded one is always the delimiter. Encoded ones ("%3F", "%23") don't contain the delimiter characters and are left alone. This is what QUrl::path() does, and what the file: case gets from QUrl::toLocalFile().
Definition at line 806 of file qqmlfile.cpp.
Definition at line 766 of file qqmlfile.cpp.
|
staticconstexpr |
Definition at line 28 of file qqmlfile.cpp.
|
staticconstexpr |
Definition at line 27 of file qqmlfile.cpp.