SourceLocation Class

class QQmlSA::SourceLocation

Stellt eine Stelle oder Region im Quellcode dar. Mehr...

Kopfzeile: #include <SourceLocation>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
Status: Technische Vorschau

Öffentliche Funktionen

quint32 begin() const
quint32 end() const
QQmlSA::SourceLocation endZeroLengthLocation(QStringView text) const
quint32 length() const
quint32 offset() const
quint32 startColumn() const
quint32 startLine() const
QQmlSA::SourceLocation startZeroLengthLocation() const

Detaillierte Beschreibung

Dokumentation der Mitgliedsfunktionen

quint32 SourceLocation::begin() const

Gibt den Offset des Beginns dieser Quellposition zurück.

quint32 SourceLocation::end() const

Gibt den Offset des Endes dieser Quellposition zurück.

QQmlSA::SourceLocation SourceLocation::endZeroLengthLocation(QStringView text) const

Gibt eine Quellposition der Länge Null zurück, die auf das Ende dieser Quellposition zeigt, die auf text zeigt.

quint32 SourceLocation::length() const

Gibt die Länge dieses Quellortes zurück.

quint32 SourceLocation::offset() const

Gibt den Offset des Beginns dieser Quellposition zurück.

quint32 SourceLocation::startColumn() const

Gibt die Nummer der Spalte zurück, die den Anfang dieser Quellposition enthält.

quint32 SourceLocation::startLine() const

Gibt die Zeilennummer zurück, die den Anfang dieser Quellstelle enthält.

QQmlSA::SourceLocation SourceLocation::startZeroLengthLocation() const

Gibt eine Quellposition der Länge Null zurück, die auf den Anfang dieser Quellposition zeigt.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.