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
qqmldirparser.cpp File Reference

(269afdcb7cab15a7430487b630b1b4af468d2015)

#include "qqmldirparser_p.h"
#include <QtCore/QtDebug>
+ Include dependency graph for qqmldirparser.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE int parseInt (QStringView str, bool *ok)
 
static QTypeRevision parseVersion (const QString &str)
 
static void scanSpace (const QChar *&ch)
 
static void scanToEnd (const QChar *&ch)
 
static void scanWord (const QChar *&ch)
 
static QString pathWithoutFileSelectors (QString path, qsizetype firstPlus)
 
static bool canDisambiguate (const QString &fileName1, const QString &fileName2, QString *correctedFileName)
 
static void disambiguateFileSelectedComponents (QQmlDirComponents *components)
 
static void disambiguateFileSelectedScripts (QQmlDirScripts *scripts)
 
QDebugoperator<< (QDebug &debug, const QQmlDirParser::Component &component)
 
QDebugoperator<< (QDebug &debug, const QQmlDirParser::Script &script)
 

Function Documentation

◆ canDisambiguate()

static bool canDisambiguate ( const QString & fileName1,
const QString & fileName2,
QString * correctedFileName )
static

Definition at line 399 of file qqmldirparser.cpp.

References pathWithoutFileSelectors().

Referenced by disambiguateFileSelectedComponents(), and disambiguateFileSelectedScripts().

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

◆ disambiguateFileSelectedComponents()

static void disambiguateFileSelectedComponents ( QQmlDirComponents * components)
static

Definition at line 437 of file qqmldirparser.cpp.

References canDisambiguate(), QMultiHash< QString, QQmlDirParser::Component >::const_iterator, and Q_ASSERT.

Referenced by QQmlDirParser::disambiguateFileSelectors().

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

◆ disambiguateFileSelectedScripts()

static void disambiguateFileSelectedScripts ( QQmlDirScripts * scripts)
static

Definition at line 477 of file qqmldirparser.cpp.

References QList< T >::begin(), canDisambiguate(), QList< T >::end(), and QList< T >::erase().

Referenced by QQmlDirParser::disambiguateFileSelectors().

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

◆ operator<<() [1/2]

QDebug & operator<< ( QDebug & debug,
const QQmlDirParser::Component & component )

Definition at line 530 of file qqmldirparser.cpp.

References component(), debug, output, qPrintable, and QStringLiteral.

+ Here is the call graph for this function:

◆ operator<<() [2/2]

QDebug & operator<< ( QDebug & debug,
const QQmlDirParser::Script & script )

Definition at line 538 of file qqmldirparser.cpp.

References debug, QTypeRevision::majorVersion(), QTypeRevision::minorVersion(), QQmlDirParser::Script::nameSpace, output, qPrintable, QStringLiteral, and QQmlDirParser::Script::version.

+ Here is the call graph for this function:

◆ parseInt()

static QT_BEGIN_NAMESPACE int parseInt ( QStringView str,
bool * ok )
static

Definition at line 10 of file qqmldirparser.cpp.

References QString::at(), number, ok, pos, QString::size(), and str.

Referenced by parseVersion().

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

◆ parseVersion()

static QTypeRevision parseVersion ( const QString & str)
static

Definition at line 27 of file qqmldirparser.cpp.

References QTypeRevision::fromVersion(), QString::indexOf(), ok, parseInt(), QString::size(), and str.

Referenced by QQmlDirParser::parse().

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

◆ pathWithoutFileSelectors()

static QString pathWithoutFileSelectors ( QString path,
qsizetype firstPlus )
static

Definition at line 384 of file qqmldirparser.cpp.

References Q_ASSERT.

Referenced by canDisambiguate().

+ Here is the caller graph for this function:

◆ scanSpace()

static void scanSpace ( const QChar *& ch)
inlinestatic

Definition at line 55 of file qqmldirparser.cpp.

References ch.

Referenced by QQmlDirParser::parse().

+ Here is the caller graph for this function:

◆ scanToEnd()

static void scanToEnd ( const QChar *& ch)
inlinestatic

Definition at line 60 of file qqmldirparser.cpp.

References ch.

Referenced by QQmlDirParser::parse().

+ Here is the caller graph for this function:

◆ scanWord()

static void scanWord ( const QChar *& ch)
inlinestatic

Definition at line 65 of file qqmldirparser.cpp.

References ch.

Referenced by QQmlDirParser::parse().

+ Here is the caller graph for this function: